Prasenjit Sarkar wrote:
> 
> The lun field is ignored in SCSI-3 (not just FC). The 64-bit lun is
> also not FC specific.
> 
> A generic field name like scsi3_hba might be a better alternative,

The Scsi_Cmnd::scsi_level member looks promising for
controlling whether that is done:
    if (SDpnt->scsi_level <= SCSI_2)
        scsi_cmd[1] = (lun << 5) & 0xe0;

We just need to be careful with its values (from scsi.h):
#define SCSI_UNKNOWN    0
#define SCSI_1          1
#define SCSI_1_CCS      2
#define SCSI_2          3
#define SCSI_3          4


Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to