]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: invalidate cache before trimming image
authorJason Dillaman <dillaman@redhat.com>
Thu, 8 Sep 2016 13:59:37 +0000 (09:59 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 9 Sep 2016 12:22:47 +0000 (08:22 -0400)
commit3f93a1917437ba7b69b306e4ff971b79e8b79c89
tree90b99191289c12daa7132d1b4cb46e725e157a14
parentc6cfb616a846959a2cd1c0e540b14668c61a2afd
librbd: invalidate cache before trimming image

Any potential writeback outside the extents of a shrunk image
would result in orphaned objects.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/operation/ResizeRequest.cc
src/librbd/operation/ResizeRequest.h
src/test/librbd/operation/test_mock_ResizeRequest.cc