]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: retrieve image size at start of resize op
authorJason Dillaman <dillaman@redhat.com>
Tue, 10 Mar 2015 18:51:51 +0000 (14:51 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 10 Mar 2015 22:41:46 +0000 (15:41 -0700)
commit194fcfd04fa2a4a9479ad48e57504be118f6b68e
treecd4f05ef0f006d0be4cc17899ed2a2cf88d0f3b3
parent0212ae4651b9eb1b20bbddb59a48b5ba1e418357
librbd: retrieve image size at start of resize op

For the case where multiple resize requests were pending,
queued resizes should use the most recent value for the
current image size -- not the image size when the resize
was queued.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AsyncResizeRequest.cc
src/librbd/AsyncResizeRequest.h
src/librbd/internal.cc
src/librbd/internal.h