OSDN Git Service

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)
commit41521fa4a60344eaad433db1ab4597ba6bf78f69
treee9bb6ca61741faa6b9f43ff27e9b4694277fc4e9
parenta18e67f5f9dc1e5e9a293a946666e2e74daa1c91
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