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

2015-08-14 Thread Hannes Reinecke
On 08/14/2015 02:27 PM, James Smart wrote: > 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

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

2015-08-14 Thread James Smart
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 condition

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

2015-08-13 Thread Hannes Reinecke
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! > Here is an example of the provided data > > linux:~ # hexdump /sys/class/scsi_