Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash with rescan-scsi-bus.sh -r #10

Closed

Conversation

Nitn-Yewale
Copy link

System was crashing when 'rescan-scsi-bus.sh -r' was run. This is because of the changes in the output of sg_inq command. In it, "Device_type" has been replaced with "PDT". So when Device_type is used in sed, it was passing incorrect return value to dolunscan() and hence even the internal disk from which system is booting was getting deleted. Mentioned fix takes care of both the outputs of sg_inq command. Only in recent sg_inq we see "PDT". Earlier sg_inq still shows "Device_type".

@Nitn-Yewale
Copy link
Author

Signed-off-by: Nitin U. Yewale nyewale@redhat.com

this was missing.

doug-gilbert added a commit that referenced this pull request Jan 3, 2022
@doug-gilbert
Copy link
Owner

Good catch. When I tried 'rescan-scsi-bus.sh -r' on my laptop, it removed all my SCSI devices. Luckily the root fs was on a NVMe SSD. Applied this patch upstream by hand (actually via 'wget /10.patch'). 'rescan-scsi-bus.sh -r' on my laptop is now better behaved. Your name is in the commit message and the CREDITS file. The fix should now be available here (it is in subversion revision 929).

@Nitn-Yewale
Copy link
Author

Thank you for everything.

Regards,
Nitin Yewale

mwilck pushed a commit to openSUSE/sg3_utils-until-2023 that referenced this pull request Jan 4, 2022
…from Nitin U. Yewale, broken by rev 867

git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@929 6180dd3e-e324-4e3e-922d-17de1ae2f315

Cherry-picked from upstream fc72119
doug-gilbert added a commit that referenced this pull request May 3, 2022
mwilck pushed a commit to openSUSE/sg3_utils-until-2023 that referenced this pull request Jan 27, 2023
…from Nitin U. Yewale, broken by rev 867

git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@929 6180dd3e-e324-4e3e-922d-17de1ae2f315
hreinecke pushed a commit to hreinecke/sg3_utils that referenced this pull request Aug 17, 2023
…from Nitin U. Yewale, broken by rev 867

git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@929 6180dd3e-e324-4e3e-922d-17de1ae2f315
@doug-gilbert doug-gilbert deleted the branch doug-gilbert:master December 4, 2023 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants