qemu-img: Don't allow preallocation and compression at the same time
authorKevin Wolf <kwolf@redhat.com>
Tue, 18 Oct 2011 14:19:42 +0000 (16:19 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Oct 2011 15:34:13 +0000 (17:34 +0200)
commitc67b7e1a1a204350d81f1cbfa995b69620c4e331
treee9bb6ca61741faa6b9f43ff27e9b4694277fc4e9
parent2e48aa611f803813e363b7016fe006e6462a9741
qemu-img: Don't allow preallocation and compression at the same time

Only qcow and qcow2 can do compression at all, and they require unallocated
clusters when writing the compressed data.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qemu-img.c