From: Rogier Wolff <R.E.Wolff@BitWizard.nl>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: Scott Merritt <Scsi@PragmaSoft.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
linux-scsi@vger.kernel.org
Subject: Re: Inhibit auto-attach of scsi disks ?
Date: Wed, 2 Oct 2002 23:53:03 +0200 [thread overview]
Message-ID: <20021002235303.B12192@bitwizard.nl> (raw)
In-Reply-To: <OF4F84AA07.A8C2EDB0-ON87256C46.0062DDBA@boulder.ibm.com>
On Wed, Oct 02, 2002 at 11:10:20AM -0700, Bryan Henderson wrote:
> imagine bringing up a disk in 3 stages: 1) initialize the SCSI low level
> driver and identify the device at that level; 2) attach the device as a
> SCSI disk; 3) create the partition devices (read the partition table).
I fully agree! The Unix philosophy is that you can easily make a
"script" or something that "does the one extra thing". But if
something automatically does something for you, then you can't
make a script that omits that step that shouldn't have happened
in the first place.
This is the power of Unix: as a user you get to make unexpected
combinations that the designers didn't think of.
In this case, we have some history to take along. For example,
if we'd require a userlevel program to initiate partition table
reading, we'd make a whole lot of systems that do "root=/dev/sda3"
non-bootable. That is not an option.
Personally, I think lowlevel drivers should NOT bother with
partitions. We should have a "partition driver", which will
pass the requests it gets on to a lowlevel driver with an
offset. This is the conceptual level. For performance reasons,
we'll end up doing something in ll_rw_block that does:
if (major == partition_major) {
block += partitions[minor].block_offset;
major = partitions[minor].major;
minor = partitions[minor].minor;
}
just 3 instructions extra, but it relieves ALL lower level drivers
of having to deal with partitions.
Then we'd have a "ide disk driver" which sanely supports 256
IDE drives on one major. We also get a driver which supports a
total of 256 partitions, in a dense way. Currently we are having
trouble because SOME people have 16 partitions, and SOME people
have more than 16 disks. We currently then have to allocate
16 disks * 16 partitions = 256 partitions which are seldomly
used, but individual users hit one or the other limitation
quite easily.
This is what I think SHOULD eventually be implemented. We'll
need to solve some compatiblity issues for the intervening period.
One way to ensure compatiblity would be to make all "currently
partitioned" devices one of those magic partitioner devices,
and reroute to the NEW real, dense driver by a compatibility
module which only has to do some initializations.
Roger.
--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* The Worlds Ecosystem is a stable system. Stable systems may experience *
* excursions from the stable situation. We are currenly in such an *
* excursion: The stable situation does not include humans. ***************
next prev parent reply other threads:[~2002-10-02 21:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-02 18:10 Inhibit auto-attach of scsi disks ? Bryan Henderson
2002-10-02 19:51 ` Alan Cox
2002-10-02 21:30 ` Rogier Wolff
2002-10-02 21:44 ` Doug Ledford
2002-10-02 21:56 ` Rogier Wolff
2002-10-02 20:52 ` Scott Merritt
2002-10-02 21:53 ` Rogier Wolff [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-03 17:09 Bryan Henderson
2002-10-03 16:52 Bryan Henderson
2002-10-01 15:01 [PATCH] first cut at fixing unable to requeue with no outstanding commands Patrick Mansfield
2002-10-01 15:14 ` James Bottomley
2002-10-01 20:18 ` Inhibit auto-attach of scsi disks ? Scott Merritt
2002-10-02 0:46 ` Alan Cox
2002-10-02 1:49 ` Scott Merritt
2002-10-02 1:58 ` Doug Ledford
2002-10-02 2:45 ` Scott Merritt
2002-10-02 13:40 ` Alan Cox
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=20021002235303.B12192@bitwizard.nl \
--to=r.e.wolff@bitwizard.nl \
--cc=Scsi@PragmaSoft.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=hbryan@us.ibm.com \
--cc=linux-scsi@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.