]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] BLOCK: delay all uevents until partition table is scanned
authorKay Sievers <kay.sievers@suse.de>
Fri, 24 Mar 2006 19:45:35 +0000 (20:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Apr 2006 18:41:24 +0000 (11:41 -0700)
commitc8b07a1f726452e4520bdc370009c0c2dff4b61f
treee65b52809b9178c627f0d73c6b4bdf1fb3e03889
parent8dccc94c1b1fa4cd7170200bc1df5892cab0700f
[PATCH] BLOCK: delay all uevents until partition table is scanned

[BLOCK] delay all uevents until partition table is scanned

Here we delay the annoucement of all block device events until the
disk's partition table is scanned and all partition devices are already
created and sysfs is populated.

We have a bunch of old bugs for removable storage handling where we
probe successfully for a filesystem on the raw disk, but at the
same time the kernel recognizes a partition table and creates partition
devices.
Currently there is no sane way to tell if partitions will show up or not
at the time the disk device is announced to userspace. With the delayed
events we can simply skip any probe for a filesystem on the raw disk when
we find already present partitions.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/partitions/check.c
include/linux/genhd.h