device mapper - implement dumping
authorAlex Hornung <ahornung@gmail.com>
Thu, 21 Oct 2010 06:47:46 +0000 (07:47 +0100)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Oct 2010 16:34:56 +0000 (09:34 -0700)
commit5ce955316546b3a8b09bb7573648567368548b04
treed3269610fe704189a3da39332d125c16a6fb0e5b
parentf93480029d67618122e1a8034bd284e9123fedd1
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