Bug 705404
Summary: | dasdinfo return 0 if action failed | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Petr Sklenar <psklenar> | ||||
Component: | s390utils | Assignee: | Dan HorĂ¡k <dhorak> | ||||
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.1 | CC: | azelinka, bugproxy, jkachuck, jmarko, ovasik, rprice | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | s390x | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | s390utils-1.8.2-37.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 705400 | Environment: | |||||
Last Closed: | 2011-12-06 17:44:46 UTC | Type: | --- | ||||
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: | 705400 | ||||||
Bug Blocks: | 684953 | ||||||
Attachments: |
|
Description
Petr Sklenar
2011-05-17 15:24:34 UTC
------- Comment From lnx1138.ibm.com 2011-05-20 16:04 EDT------- . ------- Comment From brueckner.ibm.com 2011-05-23 05:56 EDT------- The patch has been tested, fixes the problem, and will be included in the next upstream release of the s390-tools. With best regards, Hendrik Created attachment 500384 [details]
s390-tools-rhel6-dasdinfo-returncode.patch
------- Comment on attachment From brueckner.ibm.com 2011-05-23 05:56 EDT-------
Description: dasdinfo: return error code in case of failure.
Symptom: The dasdinfo tool always returns 0 even in case of an error.
Problem: If the tool is used in a script the return code can not be used
since it is always 0.
Solution: Give a non zero return value in case of an error.
------- Comment From sachinp.com 2011-09-15 05:32 EDT------- Tested against RHEL 6.2 Alpha. The issue is fixed. # dasdinfo -b /dev/write_whatever_here -l # echo $? 255 # echo $? 255 # cat /etc/issue Red Hat Enterprise Linux Server release 6.2 Beta (Santiago) Kernel \r on an \m Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1525.html |