#
a70f355b |
| 21-Aug-2021 |
andvar <andvar@NetBSD.org> |
fix typos in sys/dev/dm code comments and documentation. also remove some trailing space in documentation.
|
#
b5a91dc2 |
| 08-Jul-2020 |
thorpej <thorpej@NetBSD.org> |
Adapt to proplib API chanages.
|
#
67de4a93 |
| 21-Jan-2020 |
tkusumi <tkusumi@NetBSD.org> |
dm: #if0 target's ->upcall() handler
This is part of NetBSD's dm design, but unimplemented (all handlers return 0) and also unused.
|
#
ea24dc8d |
| 05-Jan-2020 |
tkusumi <tkusumi@NetBSD.org> |
dm: Add dm-delay target
Ported from DragonFlyBSD, but this target had originally existed in Linux kernel. See below for details. https://www.kernel.org/doc/Documentation/device-mapper/delay.txt
Due
dm: Add dm-delay target
Ported from DragonFlyBSD, but this target had originally existed in Linux kernel. See below for details. https://www.kernel.org/doc/Documentation/device-mapper/delay.txt
Due to "tick" in hz(9) not working (which results in dmdlthread spinning forever in _submit_queue() without dp extracted from delayed list and queued into submit list), this hasn't been hooked to dm.kmod yet.
taken-from: DragonFlyBSD
show more ...
|
#
8dab45b6 |
| 02-Jan-2020 |
tkusumi <tkusumi@NetBSD.org> |
dm: Add dm-flakey target
Ported from DragonFlyBSD, but this target had originally existed in Linux kernel. See below for details. https://www.kernel.org/doc/Documentation/device-mapper/dm-flakey.txt
dm: Add dm-flakey target
Ported from DragonFlyBSD, but this target had originally existed in Linux kernel. See below for details. https://www.kernel.org/doc/Documentation/device-mapper/dm-flakey.txt
Due to two technical issues, this hasn't been hooked to dm.kmod yet. 1) "tick" in hz(9) not working. 2) Unable to use ->b_private in nestiobuf callback when it's already used for mbp (see HAS_BUF_PRIV2).
taken-from: DragonFlyBSD
show more ...
|
#
a9ece896 |
| 23-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Make target's ->table() optional
Since ->info() (counter part of ->table() in the original dm design in Linux kernel in .status where both INFO and TABLE are optional) is an optional handler, ma
dm: Make target's ->table() optional
Since ->info() (counter part of ->table() in the original dm design in Linux kernel in .status where both INFO and TABLE are optional) is an optional handler, make ->table() optional as well. Some targets don't have anything to do in ->table() just as in ->info().
taken-from: DragonFlyBSD
show more ...
|
#
c2813277 |
| 21-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Fix dm-stripe's "status" output format
As mentioned in "dm: Don't try to implement "status" as subset of "table"", dm-stripe in NetBSD doesn't have correct "status" output format. Implement ->in
dm: Fix dm-stripe's "status" output format
As mentioned in "dm: Don't try to implement "status" as subset of "table"", dm-stripe in NetBSD doesn't have correct "status" output format. Implement ->info() to sync with Linux kernel.
Note that num_error for stripe device isn't implemented yet.
taken-from: DragonFlyBSD
show more ...
|
#
ee87a3ca |
| 21-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Remove target's ->deps() by implementing deps in dm core
Retrieving device dependencies doesn't need to be target specific. The reason it currently needs ->deps() is because dm core doesn't have
dm: Remove target's ->deps() by implementing deps in dm core
Retrieving device dependencies doesn't need to be target specific. The reason it currently needs ->deps() is because dm core doesn't have data structure that allows table to walk through target's underlying devices. Add struct dm_mapping to be able to do this, and remove ->deps()'s from targets which basically do the same thing.
=====(A) before this commit table | [dm core] ------------------------------------------------------- | pdev pdev pdev [dm targets] v ^ ^ ^ target----/---------/---------/ (void*)
=====(B) this commit table---->mapping-->mapping-->mapping-->... | | | | | v v v [dm core] ------------------------------------------------------- | pdev pdev pdev [dm targets] v ^ ^ ^ target----/---------/---------/ (void*)
taken-from: DragonFlyBSD
show more ...
|
#
d2a47630 |
| 19-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: u_{int,long} -> unsigned {int,long}
|
#
84d45206 |
| 16-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Enable dm-error and dm-zero target
Add these two targets to dm.kmod. These are generally available in Linux and DragonFlyBSD, so enable them in NetBSD as well.
|
#
46f14759 |
| 15-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Style cleanups (no functional changes)
|
#
b83e697e |
| 15-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Make targets' ->sync() optional
Apparently some targets have nothing to sync, so make it optional.
|
#
37b6bcc1 |
| 15-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Make targets' ->secsize() optional
and make a caller assume secsize 0 if ->secsize not present. This allows a dummy function to be removed which was added in "dm: Add dummy target ->sync()/->sec
dm: Make targets' ->secsize() optional
and make a caller assume secsize 0 if ->secsize not present. This allows a dummy function to be removed which was added in "dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)".
show more ...
|
#
8026110e |
| 15-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Rename targets' ->status() to ->table() given ->info() exists
Since now that dm targets in NetBSD have ->info() for "status", ->status() should be renamed to ->table() for "table", given how dm
dm: Rename targets' ->status() to ->table() given ->info() exists
Since now that dm targets in NetBSD have ->info() for "status", ->status() should be renamed to ->table() for "table", given how dm target status was originally designed in Linux kernel.
taken-from: DragonFlyBSD
show more ...
|
#
d9c59a05 |
| 14-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Remove void casts of function calls
Use of void casts in dm is not consistent, just get rid of them.
|
#
9a83c98b |
| 13-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Don't KASSERT() target handlers
Having assertions here causes panic if target is missing anything as shown in "dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)". Instead
dm: Don't KASSERT() target handlers
Having assertions here causes panic if target is missing anything as shown in "dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)". Instead just return EINVAL if a handler(s) isn't implemented.
taken-from: DragonFlyBSD
show more ...
|
#
1c486dc6 |
| 08-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Unbreak compilation of kernel modules
The dm kernel modules (MK_DM_TARGETS enabled in sys/modules/dm/Makefile) have been broken. Unbreak the build.
|
#
b794fcf3 |
| 07-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Fix strange pointer declarations
Should be "type *name" or "type* name", but not "type * name". taken-from: DragonFlyBSD
|
#
312beb09 |
| 07-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Simplify list eviction code
taken-from: DragonFlyBSD
|
#
592bc735 |
| 06-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Don't ignore dm_target_alloc() argument
dm_target_alloc() is supposed to be copying the name argument to its ->name. taken-from: DragonFlyBSD
|
#
9dea6936 |
| 04-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: style + whitespace + indentation fixes
No functional changes.
|
#
6664a499 |
| 03-Dec-2019 |
tkusumi <tkusumi@NetBSD.org> |
dm: Make global dm locks static
These are all per-file locks which protect dev/pdev/target structure. taken-from: DragonFlyBSD
|
#
249cf593 |
| 05-Jan-2018 |
christos <christos@NetBSD.org> |
use some size_t, add whitespace between functions, rcsids.
|
#
f0a7346d |
| 18-Oct-2014 |
snj <snj@NetBSD.org> |
src is too big these days to tolerate superfluous apostrophes. It's "its", people!
|
#
7cc36507 |
| 28-Aug-2011 |
ahoka <ahoka@NetBSD.org> |
readd assertions noew with the correct struct im wondering why the module cflags didnt warn about this obvious typo
|