lkml.org 
[lkml]   [2006]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Move SG_GET_SCSI_ID from sg to scsi
On Mon, Mar 27, 2006 at 09:15:35AM -0800, Linus Torvalds wrote:
> On Mon, 27 Mar 2006, Douglas Gilbert wrote:
> >
> > There are two things that really count:
> > 1) the identifier (preferably a world wide unique name)
> > of the logical unit that is being addressed
> > 2) a topological description of how that logical unit
> > is connected
>
> And "SCSI ID" doesn't describe either.
>
> > Linux's <hctl> may be a ham fisted way of describing
> > a path through a topology, but it easily beats /dev/sdabc
> > and /dev/sg4711 .
>
> Sure, you can easily beat it by selecting what you compare it against.
>
> But face it, /dev/sdabc or /dev/sg4711 simply isn't what you should
> compare against. What you should compare against is
>
> /dev/cdrom
> /sys/bus/ide/devices/0.0/block:hda/dev
> /dev/uuid/3d9e6e8dfaa3d116
> ..
>
> and a million OTHER ways to specify which device you're interested in.
>
> The fact is, they can potentially all do the SCSI command set. And a "SCSI
> ID" makes absolutely zero sense for them (those three devices may be the
> same device, they may not be, they might be on another machine, who
> knows..)

If this ioctl is generally supported, then you'll be able to find out if
they're all the same ;-)
-
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: 2006-03-27 19:28    [W:1.218 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site