diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2010-03-06 02:32:31 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2010-03-06 02:32:31 +0000 |
commit | 3abf85b5b5851b5f28d3d8a920ebb844edd08352 (patch) | |
tree | b59e5c9322cc116b0ce5dc183d3b8286080c6031 /drivers/md/dm.h | |
parent | a97f925a32aad2a37971d7bfb657006acf04e42d (diff) | |
download | kernel_samsung_smdk4412-3abf85b5b5851b5f28d3d8a920ebb844edd08352.zip kernel_samsung_smdk4412-3abf85b5b5851b5f28d3d8a920ebb844edd08352.tar.gz kernel_samsung_smdk4412-3abf85b5b5851b5f28d3d8a920ebb844edd08352.tar.bz2 |
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>
Diffstat (limited to 'drivers/md/dm.h')
-rw-r--r-- | drivers/md/dm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h index 8dadaa5..bad1724 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h @@ -125,8 +125,8 @@ void dm_stripe_exit(void); int dm_open_count(struct mapped_device *md); int dm_lock_for_deletion(struct mapped_device *md); -void dm_kobject_uevent(struct mapped_device *md, enum kobject_action action, - unsigned cookie); +int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action, + unsigned cookie); int dm_io_init(void); void dm_io_exit(void); |