Comment 38 for bug 1833618

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote : Re: failing to deploy Ubuntu Disco

Well, checking udev rules, its exactly what you said.

I guess we could change sg3 udev rules not to execute sg_inq --export --inhex.... to /sys/block/$kernel/device/vpd_pg83 for SCSI devices and that would be "enough" for this issue.

    --inhex=FN|-I FN read ASCII hex from file FN instead of DEVICE;
                        if used with --raw then read binary from FN

Looks like sg_inq gets the VPD 0×83 page directly from in-cache sysfs kernel file - from the initial device initialization made by kernel - instead of submitting an I/O to the device like this:

$ sudo sg_vpd /dev/sdc
Supported VPD pages VPD page:
invalid VPD response; probably a STANDARD INQUIRY response
fetching VPD page failed: Malformed response

which would also give us an error.