dm target:s introduce iterate devices fn
authorMike Snitzer <snitzer@redhat.com>
Mon, 22 Jun 2009 09:12:33 +0000 (10:12 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 22 Jun 2009 09:12:33 +0000 (10:12 +0100)
commitaf4874e03ed82f050d5872d8c39ce64bf16b5c38
tree38aa5dee43b4bb7a369995d4f38dee992cb051e0
parent1197764e403d97231eb6da2b1e16f511a7fd3101
dm target:s introduce iterate devices fn

Add .iterate_devices to 'struct target_type' to allow a function to be
called for all devices in a DM target.  Implemented it for all targets
except those in dm-snap.c (origin and snapshot).

(The raid1 version number jumps to 1.12 because we originally reserved
1.1 to 1.11 for 'block_on_error' but ended up using 'handle_errors'
instead.)

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: martin.petersen@oracle.com
drivers/md/dm-crypt.c
drivers/md/dm-delay.c
drivers/md/dm-linear.c
drivers/md/dm-mpath.c
drivers/md/dm-raid1.c
drivers/md/dm-stripe.c
include/linux/device-mapper.h