Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1232241
Summary: | parted -m output is bogus for a blank disk | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Richard W.M. Jones <rjones> |
Component: | parted | Assignee: | Brian Lane <bcl> |
Status: | CLOSED NOTABUG | QA Contact: | Release Test Team <release-test-team> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-06-16 22:59:37 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: | 910269 |
Description
Richard W.M. Jones
2015-06-16 10:53:05 UTC
Also note the return code is 0 (ie. "no error"). Even though the full output shows there is an error. So that's another bug. Also the upstream parted bug tracker is broken. You need to pass -s for script mode to suppress the spaces. And I think you are mistaking the return code from hexdump for that of parted, it does return 1 on an unrecognized disk label. $ parted -m -s ./blank.img u b p 2>/dev/null BYT; /home/bcl/tmp/blank.img:1073741824B:file:512:512:unknown::; $ echo $? 1 $ parted -m -s ./blank.img u b p 2>/dev/null | hexdump -C 00000000 42 59 54 3b 0a 2f 68 6f 6d 65 2f 62 63 6c 2f 74 |BYT;./home/bcl/t| 00000010 6d 70 2f 62 6c 61 6e 6b 2e 69 6d 67 3a 31 30 37 |mp/blank.img:107| 00000020 33 37 34 31 38 32 34 42 3a 66 69 6c 65 3a 35 31 |3741824B:file:51| 00000030 32 3a 35 31 32 3a 75 6e 6b 6e 6f 77 6e 3a 3a 3b |2:512:unknown::;| 00000040 0a |.| 00000041 |