[Bug 1095671] New: sg3_utils: sg_turs command in Leap broken
http://bugzilla.suse.com/show_bug.cgi?id=1095671 Bug ID: 1095671 Summary: sg3_utils: sg_turs command in Leap broken Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: dmarkh@cfl.rr.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I have this little script that shows my problem. #!/bin/bash sg_turs /dev/sr0 > /dev/null RDY=$? echo "RDY = ${RDY}" This script always says the sg_turs commands exit status is 0. Even with the door open and no disk installed. The man page for the sg_turs command says: EXIT STATUS The exit status of sg_turs is 0 when it is successful (e.g. in the case of a mechanical disk, it is spun up and ready to accept commands). For this utility the other exit status of interest is 2 corresponding to the "not ready" sense key. For other exit status values see the sg3_utils(8) man page. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1095671 Hannes Reinecke <hare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|hare@suse.com |martin.wilck@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1095671 https://bugzilla.suse.com/show_bug.cgi?id=1095671#c1 --- Comment #1 from Martin Wilck <martin.wilck@suse.com> --- 2324fe61 ("sg_turs: fix exit status when not ready in single case; sg_lib: add sg_ll_start_stop_unit_pt(); sg_tst_context: add --verbose optin, other tweaks") upstream 1.44 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1095671 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1095671 https://bugzilla.suse.com/show_bug.cgi?id=1095671#c2 --- Comment #2 from Martin Wilck <martin.wilck@suse.com> --- I'm really sorry this too 4 years :-( The problem is already fixed in SLE15-SP4, Leap 15.4 and Tumbleweed. Created sr#275737 for SLE15-SP3. QA: Run sg_turs e.g. on an empty CD-ROM drive BAD: # sg_turs -n 1 -l -v -v -v /dev/sr0; echo $? open /dev/sr0 with flags=0x800 duration=32 ms Test unit ready: Fixed format, current; Sense key: Not Ready Additional sense: Medium not present - tray closed Raw sense data (in hex): 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00 device not ready 0 GOOD: # sg_turs -n 1 -l -v -v -v /dev/sr0; echo $? open /dev/sr0 with flags=0x800 duration=32 ms Test unit ready: Fixed format, current; Sense key: Not Ready Additional sense: Medium not present - tray closed Raw sense data (in hex): 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00 device not ready 2 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1095671 https://bugzilla.suse.com/show_bug.cgi?id=1095671#c5 --- Comment #5 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2022:3132-1: An update that has four recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1095671,1099278,1199248,954600 CVE References: JIRA References: Sources used: openSUSE Leap Micro 5.2 (src): sg3_utils-1.44~763+22.a121545-150300.16.5.1 openSUSE Leap 15.3 (src): sg3_utils-1.44~763+22.a121545-150300.16.5.1 SUSE Linux Enterprise Module for Basesystem 15-SP3 (src): sg3_utils-1.44~763+22.a121545-150300.16.5.1 SUSE Linux Enterprise Micro 5.2 (src): sg3_utils-1.44~763+22.a121545-150300.16.5.1 SUSE Linux Enterprise Micro 5.1 (src): sg3_utils-1.44~763+22.a121545-150300.16.5.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1095671 https://bugzilla.suse.com/show_bug.cgi?id=1095671#c6 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #6 from Martin Wilck <martin.wilck@suse.com> --- Closing per comment 5 -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com