From: James Bottomley <James.Bottomley@steeleye.com>
To: Andries Brouwer <aebr@win.tue.nl>
Cc: Kurt Garloff <garloff@suse.de>,
viro@parcelfarce.linux.theplanet.co.uk,
Andrew Morton <akpm@osdl.org>,
hch@infradead.org, SCSI Mailing List <linux-scsi@vger.kernel.org>,
pbadari@us.ibm.com, willy@debian.org
Subject: Re: lots and lots of disks again
Date: 17 Feb 2004 10:18:07 -0500 [thread overview]
Message-ID: <1077031099.1757.24.camel@mulgrave> (raw)
In-Reply-To: <20040217144959.GA4282@pclin040.win.tue.nl>
On Tue, 2004-02-17 at 09:49, Andries Brouwer wrote:
> On Mon, Feb 16, 2004 at 07:56:10PM -0500, James Bottomley wrote:
> > We also need to flip the switch entirely one way or the other for
> > increased partition numbers since a mixed scheme would be asking for an
> > admin nightmare.
>
> Why would that be?
>
> Suppose /dev/sdAA is (1049,0) and has 256 partitions.
> And /dev/sda is (8,0) and has 16 partitions.
> Where is the nightmare?
You're kidding, right?
Think of the code paths: at the moment we tell the gendisk the number of
minors we need when we register it. It then probes the partition tables
and fills in the values. If we have a large partition major, we need to
know *before* we call add_disk(). The only thing that determines this
is the on disc partitioning scheme, so now you need to know the
partition type before you register the gendisk. This type of layering
violation is a sure sign of a bad design.
Even assuming we can come up with a clean coding solution that doesn't
cause everyone to blow chunks when reading it, think what you've done to
the administrator of the system: Accidentally repartition a drive with
a big partition table and it migrates majors and device names. Also,
our device node assignment now isn't simply discovery order, it's
partition type order followed by discovery order.
The correct way to solve this is an all or nothing migration gated by a
boot time flag.
James
next prev parent reply other threads:[~2004-02-17 15:19 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-04 10:45 lots and lots of disks again Andrew Morton
2004-02-10 11:04 ` Kurt Garloff
2004-02-10 11:26 ` Kurt Garloff
2004-02-10 13:39 ` Christoph Hellwig
2004-02-10 15:47 ` Kurt Garloff
2004-02-10 15:52 ` Christoph Hellwig
2004-02-10 16:08 ` Kurt Garloff
2004-02-10 20:10 ` Andries Brouwer
2004-02-10 20:11 ` Matthew Wilcox
2004-02-10 20:58 ` Kurt Garloff
2004-02-10 21:21 ` viro
2004-02-10 21:34 ` Kurt Garloff
2004-02-10 21:42 ` viro
2004-02-10 22:28 ` Kurt Garloff
2004-02-10 18:26 ` Andrew Morton
2004-02-11 14:56 ` Kurt Garloff
2004-02-11 21:28 ` Andrew Morton
2004-02-11 22:09 ` Kurt Garloff
2004-02-11 22:29 ` Andrew Morton
2004-02-11 22:53 ` viro
2004-02-12 15:00 ` Kurt Garloff
2004-02-12 15:20 ` James Bottomley
2004-02-12 15:57 ` viro
2004-02-12 16:18 ` Kurt Garloff
2004-02-12 16:43 ` James Bottomley
2004-02-16 12:40 ` Kurt Garloff
2004-02-16 22:57 ` Andries Brouwer
2004-02-17 0:56 ` James Bottomley
2004-02-17 7:57 ` Kurt Garloff
2004-02-17 15:08 ` James Bottomley
2004-02-17 15:28 ` Matthew Wilcox
2004-02-17 14:49 ` Andries Brouwer
2004-02-17 15:18 ` James Bottomley [this message]
2004-02-17 15:27 ` Kurt Garloff
2004-02-29 16:41 ` James Bottomley
2004-02-29 23:31 ` Kurt Garloff
2004-03-03 19:30 ` Mike Anderson
2004-03-03 19:55 ` Kurt Garloff
2004-02-17 15:50 ` Andries Brouwer
2004-02-17 17:57 ` James Bottomley
2004-02-17 18:44 ` Andries Brouwer
2004-02-13 0:05 ` Kurt Garloff
2004-02-16 12:31 ` Kurt Garloff
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=1077031099.1757.24.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=aebr@win.tue.nl \
--cc=akpm@osdl.org \
--cc=garloff@suse.de \
--cc=hch@infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=pbadari@us.ibm.com \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
--cc=willy@debian.org \
/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