Re: Questions about proc_scsi_write() in scsi_proc.c

2007-10-26 Thread Rob Landley
On Friday 26 October 2007 5:47:57 pm James Bottomley wrote: > > > http://www.t10.org/ftp/t10/drafts/sam3/sam3r14.pdf > > > http://www.t10.org/ftp/t10/drafts/sam4/sam4r13.pdf > > > > Unfortunately those two documents are 127 pages and 148 pages, > > respectively, and I haven't had a chance to make a

Re: Questions about proc_scsi_write() in scsi_proc.c

2007-10-26 Thread Matthew Wilcox
On Fri, Oct 26, 2007 at 05:29:53PM -0500, Rob Landley wrote: > Ok, I'm unclear on what a LUN is. All the devices I have lying around give > me > a LUN of zero. I used to think that a LUN was a bit like partition, and > mostly used for CD changes. The structure "scsi_target" seems to aggregate

Re: Questions about proc_scsi_write() in scsi_proc.c

2007-10-26 Thread James Bottomley
On Fri, 2007-10-26 at 17:29 -0500, Rob Landley wrote: > On Friday 26 October 2007 4:09:37 pm James Bottomley wrote: > > On Fri, 2007-10-26 at 15:07 -0500, Rob Landley wrote: > > > I don't understanding this code: > > > > > > 1) for echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi, is this >

Re: Questions about proc_scsi_write() in scsi_proc.c

2007-10-26 Thread Rob Landley
On Friday 26 October 2007 4:09:37 pm James Bottomley wrote: > On Fri, 2007-10-26 at 15:07 -0500, Rob Landley wrote: > > I don't understanding this code: > > > > 1) for echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi, is this > > only for parallel scsi? > > No. > > > I thought most modern b

Re: Questions about proc_scsi_write() in scsi_proc.c

2007-10-26 Thread James Bottomley
On Fri, 2007-10-26 at 15:07 -0500, Rob Landley wrote: > I don't understanding this code: > > 1) for echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi, is this only > for parallel scsi? No. > I thought most modern busses (usb, sata, FC, firewire, > etc) dynamically assign these numbers

Questions about proc_scsi_write() in scsi_proc.c

2007-10-26 Thread Rob Landley
I don't understanding this code: 1) for echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi, is this only for parallel scsi? I thought most modern busses (usb, sata, FC, firewire, etc) dynamically assign these numbers and just use them as a unique identifier ala kdev_t. How would this wor