aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-05-06 21:08:43 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-05-09 13:32:16 +0200
commit85f49cad879adfb5c3cbdc47ca3c3b50eb8f40bc (patch)
tree1600d9060ee2ffebfa8b95af4f4338aaf1896fc1 /include
parentec209aca8340be1c81afe13fbe0ba135e5d3b9f4 (diff)
downloadqemu-85f49cad879adfb5c3cbdc47ca3c3b50eb8f40bc.zip
qemu-85f49cad879adfb5c3cbdc47ca3c3b50eb8f40bc.tar.gz
qemu-85f49cad879adfb5c3cbdc47ca3c3b50eb8f40bc.tar.bz2
qemu-img: Convert by cluster size if target is compressed
If target block driver forces compression, qemu-img convert needs to write by cluster size as well as "-c" option. Particularly, this applies for converting to VMDK streamOptimized format. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 467fb2b..27d8598 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -34,6 +34,10 @@ typedef struct BlockDriverInfo {
* opened with BDRV_O_UNMAP flag for this to work.
*/
bool can_write_zeroes_with_unmap;
+ /*
+ * True if this block driver only supports compressed writes
+ */
+ bool needs_compressed_writes;
} BlockDriverInfo;
typedef struct BlockFragInfo {