Closed bguruswamy closed 1 year ago
Thanks for the patch. Could you go over to https://github.com/doug-gilbert/sg3_utils and clone that repository? It is much more recent than this repository (e.g. 'rescan-scsi-bus.sh -V' shows 2018 here and two days ago in my version). This failure has been reported (and fixed) before, so I hope Hannes will update this repository so users don't repeat the work of fixing and reporting bugs.
Fixed with git svn id 929.
sg_inq command, which is part of the sg3_utils package, has been modified to output the string "PDT" instead of "Device_type" in commit d1c58f173918f22723a79d0ab06bcfb60092e75a. However, rescan-scsi-bus.sh is consuming the output from sq_inq, which has not been updated to use the modified output of sg_inq. As a result, running rescan-scsi-bus.sh with the "-r" option is causing hard disks to be removed. This commit updates rescan-scsi-bus.sh to use the modified output of sg_inq to avoid this issue.