]> git.proxmox.com Git - mirror_qemu.git/commit
vmdk: Implement .bdrv_get_info()
authorFam Zheng <famz@redhat.com>
Tue, 6 May 2014 13:08:45 +0000 (21:08 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 9 May 2014 11:32:16 +0000 (13:32 +0200)
commit74fe188cd1a27a5565787152d8620f8b8d04c4f9
treed3bf49aba27216eee388e3fc43e4de87823552ad
parentba0ad89e2c3316ce26ca6576a3c5051f91bfc0fe
vmdk: Implement .bdrv_get_info()

This will return cluster_size and needs_compressed_writes to caller, if all the
extents have the same value (or there's only one extent). Otherwise return
-ENOTSUP.

cluster_size is only reported for sparse formats.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vmdk.c
tests/qemu-iotests/059.out