Skip to content

Commit

Permalink
[PATCH] dm: add uevent change event on resume
Browse files Browse the repository at this point in the history
Device-mapper devices are not accessible until a 'resume' ioctl has been
issued.  For userspace to find out when this happens we need to generate an
uevent for udev to take appropriate action.

As discussed at OLS we should send 'change' events for 'resume'.  We can think
of no useful purpose served by also having 'suspend' events.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Hannes Reinecke authored and Linus Torvalds committed Oct 3, 2006
1 parent e69fae5 commit 8560ed6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,8 @@ int dm_resume(struct mapped_device *md)

dm_table_unplug_all(map);

kobject_uevent(&md->disk->kobj, KOBJ_CHANGE);

r = 0;

out:
Expand Down

0 comments on commit 8560ed6

Please sign in to comment.