Re: [Qemu-devel] [RFC 3/4] qemu-img: add max-size subcommand

2017-03-09 Thread Stefan Hajnoczi
On Fri, Mar 03, 2017 at 11:56:54PM +0200, Nir Soffer wrote: > On Fri, Mar 3, 2017 at 3:51 PM, Stefan Hajnoczi wrote: > > +ret_size = bdrv_max_size(drv, opts, in_blk ? blk_bs(in_blk) : NULL, > > + &local_err); > > +if (local_err) { > > +error_report_err(l

Re: [Qemu-devel] [RFC 3/4] qemu-img: add max-size subcommand

2017-03-03 Thread Nir Soffer
On Fri, Mar 3, 2017 at 3:51 PM, Stefan Hajnoczi wrote: > The max-size subcommand calculates the maximum size required by a new > image file. This can be used by users or management tools that need to > allocate space on an LVM volume, SAN LUN, etc before creating or > converting an image file. >

[Qemu-devel] [RFC 3/4] qemu-img: add max-size subcommand

2017-03-03 Thread Stefan Hajnoczi
The max-size subcommand calculates the maximum size required by a new image file. This can be used by users or management tools that need to allocate space on an LVM volume, SAN LUN, etc before creating or converting an image file. Suggested-by: Maor Lipchuk Signed-off-by: Stefan Hajnoczi ---