dm ioctl: introduce flag indicating uevent was generated
authorPeter Rajnoha <prajnoha@redhat.com>
Sat, 6 Mar 2010 02:32:31 +0000 (02:32 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 6 Mar 2010 02:32:31 +0000 (02:32 +0000)
commit3abf85b5b5851b5f28d3d8a920ebb844edd08352
treeb59e5c9322cc116b0ce5dc183d3b8286080c6031
parenta97f925a32aad2a37971d7bfb657006acf04e42d
dm ioctl: introduce flag indicating uevent was generated

Set a new DM_UEVENT_GENERATED_FLAG when returning from ioctls to
indicate that a uevent was actually generated.  This tells the userspace
caller that it may need to wait for the event to be processed.

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