> On Aug 12, 2016, at 10:19 AM, Mike Christie <mchristi@xxxxxxxxxx> wrote: > > On 08/11/2016 06:38 PM, Kamble, Nitin A wrote: >> >> SCSI block devices has SG_IO IOCTL interface by which applications can identify the device uniquely. This helps applications identify the device uniquely without relying on the device file names or any other mechanisms. >> >> For more details l ook at the manpage of sg_inq commnad. https://manned.org/sg_inq >> >> Some of the non SCSI devices also support this SG_IO interface for inquiry. Examples include SATA, NVME, Virtual Disks. >> >> It is desired to identify every RBD uniquely just from the device file. It will help in using RBD devices as drop in replacement for SCSI/SATA devices. Currently the RBD code in ceph-client does not support the SG_IO ioctl interface for inquiry to identify the device uniquely. Has adding the SG_IO ioctl interface to the RBD devices ever been considered before? >> > > What application do you need this for right now? Is it udev's scsi_id? The sg_inq command is one of such application. Or any application calling sg_simple_inquiry() function from /usr/include/scsi/sg_cmds_basic.h > > What pages do you need? Just 0x83? > The pages 0x83 & 0x80 are good to have. The Inquiry command 0x12 is of most interest. It is described in the section 3.6.1 of this SCSI commands reference manual: http://www.seagate.com/files/staticfiles/support/docs/manual/Interface%20manuals/100293068h.pdf . Thanks, Nitin -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html