NetBSD/sys/dev/dm
tkusumi ee87a3cadb 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
2019-12-21 11:59:03 +00:00
..
doc dm: Fix strange pointer declarations 2019-12-07 15:28:39 +00:00
device-mapper.c dm: Refactor dmioctl() 2019-12-19 15:57:46 +00:00
dm_dev.c dm: Style cleanups (no functional changes) 2019-12-15 14:39:42 +00:00
dm_ioctl.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm_pdev.c dm: Fix "table" output format of dm-linear and dm-stripe 2019-12-20 16:16:36 +00:00
dm_table.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm_target_error.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm_target_linear.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm_target_mirror.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm_target_snapshot.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm_target_stripe.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm_target_zero.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm_target.c dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
dm.h dm: Remove target's ->deps() by implementing deps in dm core 2019-12-21 11:59:03 +00:00
files.dm Add error and zero targets to build. 2019-12-17 07:57:25 +00:00
Makefile
netbsd-dm.h dm: Remove trailing whitespace 2019-12-06 16:46:14 +00:00
TODO