mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: linux-kernel@vger.kernel.org, greg@kroah.com, viro@ftp.linux.org.uk
Subject: Re: [BLOCK] delay all uevents until partition table is scanned
Date: Fri, 24 Mar 2006 11:35:02 -0800	[thread overview]
Message-ID: <20060324113502.e6583da6.rdunlap@xenotime.net> (raw)
In-Reply-To: <20060324191748.GA13654@vrfy.org>

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

> From: Kay Sievers <kay.sievers@suse.de>
> 
> [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

  reply	other threads:[~2006-03-24 19:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-24 19:17 Kay Sievers
2006-03-24 19:35 ` Randy.Dunlap [this message]
2006-03-24 19:45   ` Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060324113502.e6583da6.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=greg@kroah.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ftp.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®