Bug 745606
Summary: | libguestfs: error: part_list: could not parse row from output of parted print command | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | mbooth, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-02 17:28:05 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: |
Description
Richard W.M. Jones
2011-10-12 20:00:01 UTC
Proposed patch (to parted) sent upstream: http://lists.alioth.debian.org/pipermail/parted-devel/2011-October/thread.html#3944 A simple reproducer for this is: $ dd if=/dev/urandom of=/tmp/test.img bs=1k count=500 500+0 records in 500+0 records out 512000 bytes (512 kB) copied, 0.0474926 s, 10.8 MB/s With this random disk image, in guestfish: ><fs> part-list /dev/vda libguestfs: error: part_list: could not parse row from output of parted print command: /dev/vda:512000B:virtblk:512:512:unknown:Virtio Block Device:; and directly in parted: $ parted -m -s -- /tmp/test.img unit b print 2> /dev/null Error: /tmp/test.img: unrecognised disk label BYT; /tmp/test.img:512000B:file:512:512:unknown::; (Notice that the error message was sent to stdout) With the inclusion of my patch (comment 1) in parted 3.1, the parted command works and libguestfs is fixed without needing any changes. Note that the fix is included in parted 3.1 in Fedora >= 18. Fedora 17 still contains the broken version of parted. Closing this bug with resolution "RAWHIDE". *** Bug 842551 has been marked as a duplicate of this bug. *** |