Re: [BLOCK] delay all uevents until partition table is scanned
- From: "Randy.Dunlap" <rdunlap@xxxxxxxxxxxx>
- Date: Fri, 24 Mar 2006 11:35:02 -0800
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/
- Follow-Ups:
- Re: [BLOCK] delay all uevents until partition table is scanned
- From: Kay Sievers
- Re: [BLOCK] delay all uevents until partition table is scanned
- References:
- [BLOCK] delay all uevents until partition table is scanned
- From: Kay Sievers
- [BLOCK] delay all uevents until partition table is scanned
- Prev by Date: Re: [RFC][PATCH 1/2] Virtualization of UTS
- Next by Date: Re: [Ext2-devel] [RFC] [PATCH] Reducing average ext2 fsck time through fs-wide dirty bit]
- Previous by thread: [BLOCK] delay all uevents until partition table is scanned
- Next by thread: Re: [BLOCK] delay all uevents until partition table is scanned
- Index(es):
Relevant Pages
|