]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: add bdrv_measure() API
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 5 Jul 2017 12:57:30 +0000 (13:57 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:00 +0000 (17:45 +0200)
commit90880ff107ecaada2a06a823dc5fa652f6e37a62
treef63e4447193bad024626ead37492cddbd246e2e5
parentb43671f80cda8d0f11dcb929ed76fbd680c29cec
block: add bdrv_measure() API

bdrv_measure() provides a conservative maximum for the size of a new
image.  This information is handy if storage needs to be allocated (e.g.
a SAN or an LVM volume) ahead of time.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20170705125738.8777-2-stefanha@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block.c
include/block/block.h
include/block/block_int.h
qapi/block-core.json