hreinecke / sg3_utils

Deprecated git-svn mirror for sg3_utils
http://sg.danny.cz/sg/sg3_utils.html
Other
154 stars 91 forks source link

sg3_utils: Fix issue with rescan-scsi-bus.sh removing hard disks #92

Closed bguruswamy closed 1 year ago

bguruswamy commented 1 year ago

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.

doug-gilbert commented 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.

hreinecke commented 1 year ago

Fixed with git svn id 929.