• Kay Sievers's avatar
    [PATCH] BLOCK: delay all uevents until partition table is scanned · d4d7e5df
    Kay Sievers authored
    [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: default avatarKay Sievers <kay.sievers@suse.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    d4d7e5df
genhd.h 13.5 KB