]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: prevent copyup during image shrink operations 3607/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 3 Feb 2015 11:07:00 +0000 (06:07 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 3 Feb 2015 11:07:11 +0000 (06:07 -0500)
commit8d61c3965873286bf3173edbe67f734a8a2d144b
tree182316ccdd96ad41d30e1a2e3ba0995d7c53324a
parentfbcde04a386749dea1f1443724fc76446a0538ce
librbd: prevent copyup during image shrink operations

If a cloned image was shrunk, it was possible for a copyup
to be performed on objects outside of the new image range.
Resize now pre-shrinks the parent overlap to disable copyup
when removing objects.

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