Bug 798196 - virt-resize confuses format and output_format variables; using --output-format sets the input format
Summary: virt-resize confuses format and output_format variables; using --output-forma...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 798197
TreeView+ depends on / blocked
 
Reported: 2012-02-28 09:51 UTC by Richard W.M. Jones
Modified: 2012-02-28 10:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 798197 (view as bug list)
Environment:
Last Closed: 2012-02-28 10:35:53 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2012-02-28 09:51:36 UTC
Description of problem:

virt-resize --output-format raw sets the *input* format to raw.
This is because the code for the --output-format flag is
accidentally setting the format variable (not output_format):

https://github.com/libguestfs/libguestfs/blob/a93d4a9dc1aea6940886c85d4b09f21cbfc80969/resize/resize.ml#L101

(Bug found by Grant Williamson)

Version-Release number of selected component (if applicable):

1.17.8

How reproducible:

100%

Steps to Reproduce:
http://pastebin.com/VpsNjYEa

Comment 1 Richard W.M. Jones 2012-02-28 10:35:53 UTC
Fix pushed upstream here:
https://github.com/libguestfs/libguestfs/commit/88ba4da4d6c07762fc95c96ea67019f0ebf4677c


Note You need to log in before you can comment on or make changes to this bug.