OSDN Git Service

block/rbd: increase dynamically the image size
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 9 May 2019 14:59:27 +0000 (16:59 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 2 Jul 2019 01:53:04 +0000 (03:53 +0200)
commitd24f80234b39d2d5c0d91e63b5e4569d37b2399e
tree495e11674e65301efe548bec2ddb9771c842df40
parent7d0e02405fc02a181319b1ab8681d2f72246b7c6
block/rbd: increase dynamically the image size

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 <sgarzare@redhat.com>
Message-id: 20190509145927.293369-1-sgarzare@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/rbd.c