All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Inhibit auto-attach of scsi disks ?
@ 2002-10-02 18:10 Bryan Henderson
  2002-10-02 19:51 ` Alan Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Bryan Henderson @ 2002-10-02 18:10 UTC (permalink / raw)
  To: Scott Merritt; +Cc: Alan Cox, linux-scsi


I agree that Linux would be cleaner if auto-attach were optional.  I
hesitate to call that an artistic preference -- I think of it as
scientific.  Unattached is a valid, meaningful state, more primitive than
attached, so it should be possible for a device to come up to just that
state.

But when we speak of inhibiting partition table reading, I think that's
another (missing) feature:  I should be able to control whether Linux
considers there to be partitions on my disk or not (and change the fact
dynamically).  Note that just because the first sector contains something
that appears to be a partition table doesn't mean it is.  Then I can
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).




^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: Inhibit auto-attach of scsi disks ?
@ 2002-10-03 17:09 Bryan Henderson
  0 siblings, 0 replies; 15+ messages in thread
From: Bryan Henderson @ 2002-10-03 17:09 UTC (permalink / raw)
  To: Rogier Wolff; +Cc: Alan Cox, linux-scsi, Scott Merritt

>We should have a "partition driver", which will
>pass the requests it gets on to a lowlevel driver with an 
>offset.

That sounds exactly right to me.  Very much like the raw device driver.

But this driver should not read the partition table.  A user space program 
is perfectly capable of reading the partition table, and it can use ioctls 
to create partition devices and bind them to base devices.  Even 
overlapping if the user is serious.  This opens up a whole wide world of 
partitioning schemes.

Root filesystems are always a pain, but every SCSI root filesystem system 
I've seen (which is not many) uses an initial ramdisk and a fair amount of 
intelligence to load the proper SCSI adapter driver.  The initrd level 
system could easily establish the partitions too.

And a special case hack for simple systems whose original root filesystem 
really is on a SCSI partition would be OK by me.  It would be just like 
the hack that figures out which filesystem driver to use for that 
partition. (For those who don't know -- the kernel simply tries to mount 
with every bound-in filesystem driver it has until one succeeds.  And it 
has a special mount option that says "don't get excited if you're unable 
to do this mount -- I'm just fishing.")


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: Inhibit auto-attach of scsi disks ?
@ 2002-10-03 16:52 Bryan Henderson
  0 siblings, 0 replies; 15+ messages in thread
From: Bryan Henderson @ 2002-10-03 16:52 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-scsi, Scott Merritt

>>I should be able to control whether Linux
>> considers there to be partitions on my disk or not 
>
>Why do you want to?  Linux always offers you the entire disk anyway.

Others have given arcane examples of where this is useful, but I am coming 
at it from a philosophical point of view.  It's great that Linux can 
magically detect and make available partitions on the disk, but some of us 
like our systems to work with as little magic as possible.  It makes the 
system easier to understand, easier to diagnose when it doesn't work, and 
more flexible.

It's clear to me that the partitions are conceptually a layer above basic 
disks, so I'd like to see the layers separable.


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [PATCH] first cut at fixing unable to requeue with no outstanding commands
@ 2002-10-01 15:01 Patrick Mansfield
  2002-10-01 15:14 ` James Bottomley
  0 siblings, 1 reply; 15+ messages in thread
From: Patrick Mansfield @ 2002-10-01 15:01 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi

On Mon, Sep 30, 2002 at 08:38:49PM -0400, James Bottomley wrote:
> andmike@us.ibm.com said:
> > Are we guaranteed that blk_run_queues will be called for all types of
> > I/O? 
> 
> Pretty much, it looks like.  It's mainly triggered by I/O stuff in fs, 
> including the buffer functions, so I think the assumption that we will be 
> called eventually is good.
> 
> James

What about applications and devices that only send one IO at a time?
They could still hang.

We have: tape (st or osst), sg usage, partitioning, scanning, direct
use of the block device (i.e. dd if=/dev/sda), and probably others.

-- Patrick Mansfield

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-10-03 17:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- 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

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.