Bug 1476908

Summary: /usr/lib/udev/scsi_id -s switch doesn't work
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: systemdAssignee: systemd-maint
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: johannbg, jsynacek, lnykryn, msekleta, muadda, ssahani, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-235-1.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1476910 (view as bug list) Environment:
Last Closed: 2018-03-23 08:40:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1476910    

Description Jaroslav Škarvada 2017-07-31 19:14:52 UTC
Description of problem:
It seems the short -s option doesn't work, i.e. it's at least inconsistent with the built-in help.

Version-Release number of selected component (if applicable):
systemd-233-6.fc26.x86_64

How reproducible:
Always

Steps to Reproduce:
1.
# /usr/lib/udev/scsi_id -gu -s /dev/sda
2.
# /usr/lib/udev/scsi_id -gu -s3 /dev/sda
3.
# /usr/lib/udev/scsi_id -gu -s 3 /dev/sda
4.
# /usr/lib/udev/scsi_id -gu --sg-version=3 /dev/sda

Actual results:
1.
/usr/lib/udev/scsi_id: invalid option -- 's'
2.
/usr/lib/udev/scsi_id: invalid option -- 's'
3.
/usr/lib/udev/scsi_id: invalid option -- 's'
4.
ID

Expected results:
1.
probably /usr/lib/udev/scsi_id: invalid option -- 's'
2.
ID
3.
error or ID
4.
ID

Additional info:

Comment 1 Jan Synacek 2017-08-01 07:00:30 UTC
https://github.com/systemd/systemd/pull/6501

Comment 2 Zbigniew Jędrzejewski-Szmek 2018-03-23 08:40:20 UTC
Fixed in F28. Please reopen if you need this in F26 or F27.