]> git.baikalelectronics.ru Git - kernel.git/commit
block: send disk "change" event for rescan_partitions()
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 9 Mar 2008 20:26:02 +0000 (21:26 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 20 Apr 2008 02:10:24 +0000 (19:10 -0700)
commitb43039a329a3629247499773bfb9374fb5b98cc9
tree5534e02f0141b87ac492ba8d6342469f76f3d907
parent6b27222a0a9b0490ebb23fe2776e792012488fc7
block: send disk "change" event for rescan_partitions()

Userspace likes to get notified that the disk may have changed, when
rescan_partitions() is called after partitioning or media change. It will
make it possible to update the state of the disk with the "change" event,
before the following partition "add" events are handled.

Cc: David Zeuthen <david@fubar.dk>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/partitions/check.c