Bug 852194 - virt-sparsify --compress fails if output is raw format
Summary: virt-sparsify --compress fails if output is raw format
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:
TreeView+ depends on / blocked
 
Reported: 2012-08-27 20:02 UTC by Richard W.M. Jones
Modified: 2012-11-15 16:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-15 16:38:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2012-08-27 20:02:32 UTC
Description of problem:
(Reporter: Evaggelos Balaskas)

> # virt-sparsify -v --compress winxp.img winxp.img.spars
>
> qemu-img convert -f qcow2 -O 'raw' -c '/VM/sparsify10f031.qcow2'
> 'winxp.img.spars'
>
> qemu-img: Compression not supported for this file format
> virt-sparsify: error: external command failed: qemu-img convert -f
> qcow2 -O 'raw' -c '/VM/sparsify10f031.qcow2'
> 'winxp.img.spars'

If the output format is a format which doesn't support
compression (eg. raw), then virt-sparsify should give a
clearer error message.

Comment 1 Richard W.M. Jones 2012-11-15 16:38:51 UTC
Commit 43369e1bd4d98acf1cce6eb0216dcdb43d43bf1b
changes the error to say:

virt-sparsify: error: --compress cannot be used for raw output.  Remove 
this option or use --convert qcow2.


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