Re: [PATCH 0/4] scsi: 64-bit LUN support

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

 



On 02/21/2013 05:15 PM, Elliott, Robert (Server Storage) wrote:
Regarding changes like this:
-			printk(MYIOC_s_NOTE_FMT "[%d:%d:%d:%d] "
+			printk(MYIOC_s_NOTE_FMT "[%d:%d:%d:%llu] "
  			"FCP_ResponseInfo=%08xh\n", ioc->name,
  			sc->device->host->host_no, sc->device->channel,
  			sc->device->id, sc->device->lun,

It might be preferable to print the LUN values in hex rather than decimal,
> particularly if they are large values.  SAM-5 includes some guidance for
> displaying LUNs, shown below.

One important goal is to match the format, if any, that the user must use
> in a configuration file or command line argument, so cutting-and-pasting
> the LUN value works. So, the answer might differ for prints from different
> drivers.  If a driver expects decimal input values, then print decimal.

Yes. And no.

The patchset is meant to be as a drop-in replacement, ie with _no_ user visible changes.
So I retained the original output.

Also, the above number is identical to the sysfs representation, where
the user will find a device like

/sys/class/scsi_device/X:Y:Z:L

with each X, Y, Z, and L being a decimal number.

_If_ we were to change that we would have to do it consistently for all instances, plus the sysfs layout.

But I guess we need to have a discussion about this, as I think not everybody agrees with that assessment.

Would be a nice topic for LSF, though.

Cheers,

Hannes

--
To unsubscribe from this list: 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