Re: SCSI BLIST_*, sdev_bflags, and scsi_device flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 10 Feb 2006, Matthew Wilcox wrote:

> On Fri, Feb 10, 2006 at 10:27:21AM -0500, Alan Stern wrote:
> > On Fri, 10 Feb 2006, Christoph Hellwig wrote:
> > > Do we need per-device blist flags at all?  I suspect just having them in
> > > the target should be enough.
> > 
> > Some of the blist flags clearly are per-device: BLIST_KEY, BLIST_ISROM,
> > BLIST_NOSTARTONADD, BLIST_MS_SKIP_PAGE_08, BLIST_MS_SKIP_PAGE_3F,
> > BLIST_USE_10_BYTE_MS, BLIST_MS_192_BYTES_FOR_3F, BLIST_NOT_LOCKABLE,
> > BLIST_NO_ULD_ATTACH, BLIST_RETRY_HWERROR.  There are a few others I'm not
> > certain about.
> 
> Why are these clearly per LUN?  I agree some of them are debatable,
> but most of them indicate a general lack-of-scsi-spec compliance on the
> part of the manufacturer and hence apply to the piece of hardware (==
> scsi target) rather than just one of the LUNs in it.

Isn't is possible for a target to contain LUNs made by different 
manufacturers, each with its own kind of lack-of-compliance?

Or to put it another way...  Somewhere the SCSI commands have to be 
decoded and carried out.  With some devices that may be done at the target 
level, and with others it may be done at the LUN level.  So any BLIST flag 
that affects which commands get used should be per-LUN, for greatest 
generality.

For that matter, consider BLIST_ISROM (which means that the device is a 
cdrom).  Obviously that applies to a LUN and not to a target; there's no 
requirement that all the logical units in a target be the same kind of 
device.

Alan Stern

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux