Bug ID 1194293
Summary sg3_utils: "rescan-scsi-bus.sh -r" may delete all SCSI devices
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware All
OS openSUSE Tumbleweed
Status NEW
Severity Critical
Priority P5 - None
Component Basesystem
Assignee screening-team-bugs@suse.de
Reporter martin.wilck@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Upstream report: https://github.com/doug-gilbert/sg3_utils/pull/10

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".

Fix is
https://github.com/doug-gilbert/sg3_utils/commit/fc72119f67614152d635452856ec9894474599e4


You are receiving this mail because: