Re: [Qemu-devel] [PATCH v2] block/rbd: increase dynamically the image size

2019-05-08 Thread Stefano Garzarella
On Tue, May 07, 2019 at 11:43:50AM +0200, Kevin Wolf wrote: > Am 06.05.2019 um 11:50 hat Stefano Garzarella geschrieben: > > On Fri, May 03, 2019 at 01:21:23PM -0400, Jason Dillaman wrote: > > > On Fri, May 3, 2019 at 12:30 PM Stefano Garzarella > > > wrote: > > > > > > > > RBD APIs don't allow u

Re: [Qemu-devel] [PATCH v2] block/rbd: increase dynamically the image size

2019-05-07 Thread Kevin Wolf
Am 06.05.2019 um 11:50 hat Stefano Garzarella geschrieben: > On Fri, May 03, 2019 at 01:21:23PM -0400, Jason Dillaman wrote: > > On Fri, May 3, 2019 at 12:30 PM Stefano Garzarella > > wrote: > > > > > > RBD APIs don't allow us to write more than the size set with > > > rbd_create() or rbd_resize(

Re: [Qemu-devel] [PATCH v2] block/rbd: increase dynamically the image size

2019-05-06 Thread Stefano Garzarella
On Fri, May 03, 2019 at 01:21:23PM -0400, Jason Dillaman wrote: > On Fri, May 3, 2019 at 12:30 PM Stefano Garzarella > wrote: > > > > RBD APIs don't allow us to write more than the size set with > > rbd_create() or rbd_resize(). > > In order to support growing images (eg. qcow2), we resize the >

Re: [Qemu-devel] [PATCH v2] block/rbd: increase dynamically the image size

2019-05-03 Thread Jason Dillaman
On Fri, May 3, 2019 at 12:30 PM Stefano Garzarella wrote: > > RBD APIs don't allow us to write more than the size set with > rbd_create() or rbd_resize(). > In order to support growing images (eg. qcow2), we resize the > image before write operations that exceed the current size. > > Signed-off-by

[Qemu-devel] [PATCH v2] block/rbd: increase dynamically the image size

2019-05-03 Thread Stefano Garzarella
RBD APIs don't allow us to write more than the size set with rbd_create() or rbd_resize(). In order to support growing images (eg. qcow2), we resize the image before write operations that exceed the current size. Signed-off-by: Stefano Garzarella --- v2: - use bs->total_sectors instead of addin