ee87a3cadb
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 |
||
---|---|---|
.. | ||
doc | ||
device-mapper.c | ||
dm_dev.c | ||
dm_ioctl.c | ||
dm_pdev.c | ||
dm_table.c | ||
dm_target_error.c | ||
dm_target_linear.c | ||
dm_target_mirror.c | ||
dm_target_snapshot.c | ||
dm_target_stripe.c | ||
dm_target_zero.c | ||
dm_target.c | ||
dm.h | ||
files.dm | ||
Makefile | ||
netbsd-dm.h | ||
TODO |