Comment 58 for bug 1833618

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Output from udevtest rules in a USB drive supporting VPDs and SCSI protocol:

----
Starting '/usr/bin/sg_inq --export /dev/sdb'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_TPGS=0'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_TYPE=disk'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_VENDOR=Seagate'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_VENDOR_ENC=Seagate\x20'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_MODEL=Backup+_Desk'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_MODEL_ENC=Backup+\x20\x20Desk\x20\x20\x20'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_REVISION=0406'
Process '/usr/bin/sg_inq --export /dev/sdb' succeeded.
Starting '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg80 --raw'
'/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg80 --raw'(out) 'SCSI_IDENT_SERIAL=NA7EMXLG'
Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg80 --raw' succeeded.
Starting '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg83 --raw'
'/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg83 --raw'(out) 'SCSI_IDENT_LUN_NAA_REG=5000000000000001'
Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg83 --raw' succeeded.
Starting 'probe-bcache -o udev /dev/sdb'
Process 'probe-bcache -o udev /dev/sdb' succeeded.
Starting '/lib/udev/vdev_id -d sdb'
Process '/lib/udev/vdev_id -d sdb' succeeded.
----

Output from udevtest in a memory stick supporting only SCSI commands:

----
Process '/usr/bin/sg_inq --export /dev/sdc' succeeded.
Starting '/usr/bin/sg_inq --export --inhex=/sys/block/sdc/device/vpd_pg80 --raw'
'/usr/bin/sg_inq --export --inhex=/sys/block/sdc/device/vpd_pg80 --raw'(err) 'unable to open binary file /sys/block/sdc/device/vpd_pg80: No such file or directory'
Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdc/device/vpd_pg80 --raw' failed with exit code 15.
Starting 'probe-bcache -o udev /dev/sdc'
Process 'probe-bcache -o udev /dev/sdc' succeeded.
Starting '/lib/udev/vdev_id -d sdc'
Process '/lib/udev/vdev_id -d sdc' succeeded.
----