dm ioctl: retrieve status from inactive table
authorMike Snitzer <snitzer@redhat.com>
Thu, 10 Dec 2009 23:52:22 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:22 +0000 (23:52 +0000)
commit1d0f3ce83200edc5d43723c77c62b09ad6560294
treedd7f0306c14334d8cb2fbcabe18243c94da4b869
parent12fc0f49dc994d8d90dcf3df13f5b1ee5441288d
dm ioctl: retrieve status from inactive table

Add the flag DM_QUERY_INACTIVE_TABLE_FLAG to the ioctls to return
infomation about the loaded-but-not-yet-active table instead of the live
table.  Prior to this patch it was impossible to obtain this information
until the device had been 'resumed'.

Userspace dmsetup and libdevmapper support the flag as of version 1.02.40.
e.g. dmsetup info --inactive vg1-lv1

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-ioctl.c
include/linux/dm-ioctl.h