[Bug 922405] 1 minute delay until USB thumb drive is usable
http://bugzilla.suse.com/show_bug.cgi?id=922405 http://bugzilla.suse.com/show_bug.cgi?id=922405#c17 --- Comment #17 from Alan Ott <alan@softiron.co.uk> --- I installed the latest sg3_utils from the SLES 12.1 branch at https://github.com/hreinecke/sg3_utils , and this does not hang, but for a different reason. This latest version checks VPD page 0 to get a list of supported VPD's, but this thumb drive incorrectly returns the standard INQUIRY response in this case, causing the latest sg_inq to fail without hanging. I guess that's preferable to the alternative, but it highlights yet another bug in the thumb drive. Of course the bug in sg_inq of assuming that all length fields in VPD pages are 16-bit still remains. SPC-3 does have _some_ pages which have 16-bit length fields, but SPC-2 has none. Also, some of the same pages have 8-bit lengths in SPC-2 and 16-bit lengths in SPC-3, so in order to really do it right, sg_inq would need to: 1. Send an INQUIRY requesting the standard response (EVPD=0) 2. Check the version of the SCSI standard supported (SPC-2, SPC-3, etc) 3. Use the combination of the supported standard along with the page to determine whether to read an 8- or 16-bit length. Regardless, let's get this latest binary of sg3_utils in to all SUSE Linux versions. Alan. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com