device mapper - implement dumping
authorAlex Hornung <ahornung@gmail.com>
Thu, 21 Oct 2010 06:47:46 +0000 (07:47 +0100)
committerAlex Hornung <ahornung@gmail.com>
Fri, 22 Oct 2010 21:39:39 +0000 (22:39 +0100)
commit79b7159f45d7d7636e4c877fa0069eff3b20d6d4
treee1a3a5946695f61f9b552e9ece676fb20825ee79
parent5ea440eb9d214ae60eda598420565bde9523df6a
device mapper - implement dumping

* Implement dmdump and dump routines for the three main targets (linear,
  stripe and crypt).

* The top-level dmpdump will call all the required dump() methods in the
  targets just as it does with strategy() calls. The lower level
  target-specific dump routines will then redirect (after processing,
  etc) these requests to the underlying device's dump routines.

* This should provide quite reliable dumping even through device mapper,
  although it is more error-prone than the equivalent dumping on normal
  disks as there's a lot more going on behind the scenes.
sys/dev/disk/dm/device-mapper.c
sys/dev/disk/dm/dm.h
sys/dev/disk/dm/dm_pdev.c
sys/dev/disk/dm/dm_target.c
sys/dev/disk/dm/dm_target_crypt.c
sys/dev/disk/dm/dm_target_linear.c
sys/dev/disk/dm/dm_target_stripe.c