qcow2: add bdrv_measure() support
commitc501c35220856621e9677ba9e6a556948d49778e
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 5 Jul 2017 12:57:35 +0000 (5 13:57 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:00 +0000 (11 17:45 +0200)
tree67756bd19e8b6720dc9892b249a26cc74c280e5b
parent0eb4a8c1df6db29e835daeb954352bfaa8994374
qcow2: add bdrv_measure() support

Use qcow2_calc_prealloc_size() to get the required file size.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20170705125738.8777-7-stefanha@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c