All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Matthew Wilcox <matthew@wil.cx>
Cc: Jon Watte <jwatte@gmail.com>,
	Stefan Richter <stefanr@s5r6.in-berlin.de>,
	Andi Kleen <andi@firstfloor.org>,
	James Bottomley <James.Bottomley@HansenPartnership.com>,
	linux-scsi@vger.kernel.org
Subject: Re: AHCI finds disks; no /dev/sd inodes bound?
Date: Wed, 09 Jan 2008 23:47:50 -0500	[thread overview]
Message-ID: <4785A376.5050408@garzik.org> (raw)
In-Reply-To: <20080109205850.GU16309@parisc-linux.org>

Matthew Wilcox wrote:
> On Wed, Jan 09, 2008 at 12:36:26PM -0800, Jon Watte wrote:
>> Stefan Richter wrote:
>>>> Those systems (servers) typically have enough memory to tolerate a few
>>>> extra KB of code without problems.  In fact most PCs these days have.
>>>>    
>>> It would be a stupid solution nevertheless.
>>>
>>> (We also don't "select EXT3".)
>>>  
>> Not selecting EXT3 is a little more understandable, because there are 
>> many options -- cramfs, xfs, reiserfs, etc, depending on target. 
>> However, the number of people who DO want SATA support but DO NOT want 
>> SD block device support is... uh.. anyone?
>>
>> Solving the problem bigger and better, by factoring "SD" into a 
>> mid-level menu, and maybe calling it something non-SCSI, would probably 
>> be even better. And even more work.
> 
> OK, how about this?
> 
> config BLK_DEV_ATA_SD
> 	tristate "ATA disc support"
> 	select BLK_DEV_SD
> 
> config BLK_DEV_ATA_SR
> 	tristate "ATA CDROM support"
> 	select BLK_DEV_SR
> 
> Help text left as an exercise for the reader.

Speaking as one who strongly objects to CONFIG_ATA unconditionally 
selecting SD or SR...

I think you are on the right track.  IMO a more clean and future-proof 
solution would be

	config ATA_PROT_ATA
		select SD

	config ATA_PROT_ATAPI (or ATAPI_PROT)
		select SR

But that's just an example.  Maybe the choices could be ATA_DISK and 
ATA_EVERYTHING_ELSE.  :)  The main points are

* its not just CDROM support, but floppy/tape/etc. too for ATAPI

* do not include "sd" or "sr" in the config name, it should be more 
generic, because SCSI will eventually be an optional module for libata. 
  When libata talks to straight blkdev, we don't want this same problem 
to resurface!

	Jeff (very tired, so pardon any incoherence)







      parent reply	other threads:[~2008-01-10  4:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09  7:40 AHCI finds disks; no /dev/sd inodes bound? Jon Watte
2008-01-09 16:45 ` Andi Kleen
2008-01-09 17:21   ` Jon Watte
2008-01-09 17:29     ` James Bottomley
2008-01-09 17:49       ` Andi Kleen
2008-01-09 18:33         ` Stefan Richter
2008-01-09 18:37           ` Stefan Richter
2008-01-09 18:50           ` Stefan Richter
2008-01-09 20:36           ` Jon Watte
2008-01-09 20:58             ` Matthew Wilcox
2008-01-09 21:41               ` Stefan Richter
2008-01-09 22:23                 ` Andi Kleen
2008-01-09 23:03                   ` Stefan Richter
2008-01-09 23:16                     ` Stefan Richter
2008-01-10  0:38                     ` Andi Kleen
2008-01-10  0:53                       ` Stefan Richter
2008-01-10  4:47               ` Jeff Garzik [this message]

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=4785A376.5050408@garzik.org \
    --to=jeff@garzik.org \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=andi@firstfloor.org \
    --cc=jwatte@gmail.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=stefanr@s5r6.in-berlin.de \
    /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.