Re: [PATCH] scsi: Export SCSI Inquiry data to sysfs

From: James Smart
Date: Fri Aug 14 2015 - 08:27:50 EST


On 8/14/2015 2:32 AM, Hannes Reinecke wrote:
On 08/13/2015 01:50 PM, Johannes Thumshirn wrote:
Export the RAW SCSI Inquiry to sysfs as binfile. This way the data can be
used by userlang without the need to have and ioctl or use the sg_inq tool.

userland!


Just be careful. There are conditions where this could be stale data.... LUN reconfig on an array that hasn't been rescanned by the mid layer yet is such a case.

Any reason you didn't have the sysfs call initiate a lun scan or send an inquiry so it's always valid data ?

-- james s
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/