Re: [BLOCK] delay all uevents until partition table is scanned



On Fri, 24 Mar 2006 20:17:48 +0100 Kay Sievers wrote:

From: Kay Sievers <kay.sievers@xxxxxxx>

[BLOCK] delay all uevents until partition table is scanned

+ /* scan partition table, but supress uevents */
+ disk->part_uevent_supress = 1;
+ err = blkdev_get(bdev, FMODE_READ, 0);
+ disk->part_uevent_supress = 0;

s/supress/suppress/ please.

diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index eef5ccd..089bb01 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -104,6 +104,7 @@ struct gendisk {
* disks that can't be partitioned. */
char disk_name[32]; /* name of major driver */
struct hd_struct **part; /* [indexed by minor] */
+ int part_uevent_supress;


---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: bugged sysinstall, bsdlabel, zfs, gmirror - recept for disaster :)
    ... So after a thirty minutes I had a plan, and my server had 4 disks ... gmirror - raidz environment. ... mount point for every partition in slice. ... offset to use (the end of the previous partition plus one, ...
    (freebsd-stable)
  • bugged sysinstall, bsdlabel, zfs, gmirror - recept for disaster :)
    ... Yesterday I've decided that's about time to test zfs functionality on my home server PC. ... A couple of weeks ago I bought new desktop PC, so I had a bunch of PATA disks from old one ... Problem with labels created with sysinstal, is that it aks for a mount point for every partition in slice. ... So I've added gmirror to loader.conf ...
    (freebsd-stable)
  • Re: RAID & /boot
    ... First, although GRUB can't boot from a RAID partition, LILO can. ... Second, Linux does RAID on partitions, not whole disks. ... so you should probably plan to plug in an extra IDE controller card. ... Sometimes Linux tries to shuffle the /dev names for the drives when ...
    (alt.os.linux.suse)
  • SUMMARY: Re: SAN 3310 Multiple LUNs Not Visible on Solaris 9 Host
    ... My disks show up as: ... > connected on the primary controller, and currently has a single Logical ... > Partition: 0 ... > Lun: 0 ...
    (SunManagers)
  • Re: Help me please - partitions and start up issues!
    ... What came in the box with regard to disks and a manual? ... restore disks, but it has a built-in restore feature and a program that ... partition for system restore files totalling about 8 GB. ... files and folders" is checked and "Hide protected operating system files ...
    (microsoft.public.windowsxp.perform_maintain)