Re: [Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-20 Thread Stefan Hajnoczi
On Sat, Mar 18, 2017 at 12:51:29AM +, Nir Soffer wrote: > On Wed, Mar 15, 2017 at 11:29 AM Stefan Hajnoczi > wrote: > > diff --git a/block.c b/block.c > > index cb57370..532a4d1 100644 > > --- a/block.c > > +++ b/block.c > > @@ -3260,6 +3260,39 @@ int64_t > >

Re: [Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-20 Thread Stefan Hajnoczi
On Sat, Mar 18, 2017 at 01:28:04AM +, Nir Soffer wrote: > On Wed, Mar 15, 2017 at 11:29 AM Stefan Hajnoczi > wrote: > > diff --git a/include/block/block.h b/include/block/block.h > > index 5149260..43c789f 100644 > > --- a/include/block/block.h > > +++

Re: [Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-17 Thread Nir Soffer
On Wed, Mar 15, 2017 at 11:29 AM Stefan Hajnoczi wrote: > 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

Re: [Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-17 Thread Nir Soffer
On Wed, Mar 15, 2017 at 11:29 AM Stefan Hajnoczi wrote: > 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

Re: [Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-15 Thread Max Reitz
On 16.03.2017 04:38, Stefan Hajnoczi wrote: > On Thu, Mar 16, 2017 at 02:01:03AM +0100, Max Reitz wrote: >> On 15.03.2017 10:29, Stefan Hajnoczi wrote: >>> bdrv_measure() provides a conservative maximum for the size of a new >>> image. This information is handy if storage needs to be allocated

Re: [Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-15 Thread Stefan Hajnoczi
On Thu, Mar 16, 2017 at 02:01:03AM +0100, Max Reitz wrote: > On 15.03.2017 10:29, Stefan Hajnoczi wrote: > > 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.

Re: [Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-15 Thread Max Reitz
On 15.03.2017 10:29, Stefan Hajnoczi wrote: > 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 > --- >

[Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-15 Thread Stefan Hajnoczi
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 --- qapi/block-core.json | 19 +++