lkml.org 
[lkml]   [2004]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PATCH: cdrecord: avoiding scsi device numbering for ide devices
Tim Wright wrote:
> On Fri, 2004-08-06 at 17:14, Martin Mares wrote:
>
>>Hello!
>>
>>
>>>I see always the same answers from Linux people who don't know anyrthing than
>>>their belly button :-(
>>>
>>>Chek Solaris to see that your statements are wrong.
>>
>>Well, so could you please enlighten the Linux people and say in a couple
>>of words how it could be done?
>>
>> Have a nice fortnight
>
>
> I can offer reasons as to why it cannot :-)
>
> The path_to_inst stuff assumes a simple physical bus topology. It is
> completely unsuited to e.g. a fibre-channel fabric. It is also unsuited
> to iSCSI - my disks aren't attached to eth0, they're attached to
> whichever interface has a route to the server. It's also worthless for
> USB. The controller, bus and target are meaningless - the target number
> is dynamically assigned at plugin so giving a name to controller 0, bus
> 0 target 3 is utterly pointless.
>
> Linux and/or associated drivers has mechanisms to handle consistent
> naming for a number of these (WWPN-binding for FC, similar device
> binding of the unique ids for iSCSI, the hotplug infrastructure for usb
> etc.). All of these map devices to consistent device names in /dev. The
> "Unix" way of accessing devices has always been via names in /dev. I
> completely fail to understand why Joerg wants to try to force a naming
> model that is both alien to the native systems (I want /dev/cdrw on
> Linux; I probably want D: on Windows or something like that), and is
> inadequate to the task if you move beyond the simple world of parallel
> SCSI.

But they *don't* map to consistent device names. All hot pluggable
devices seem to map to the next available name. Looking at one of my
utility systems, it has IDE drives mapped by Redhat with ide-scsi, real
SCSI drives, a couple of flash card slots mapped to SCSI, and a USB
device, all in the /dev/sdX namespace. And in the order in which they
were detected (connected, in other words).

Joerg hasn't made it any better, but it isn't great anyway. I recommend
a script to do discovery and make symlinks somewhere to names which
always match the same device.

--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.119 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site