]> git-server-git.apps.pok.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)
committerLoic Dachary <ldachary@redhat.com>
Fri, 21 Oct 2016 10:16:44 +0000 (12:16 +0200)
commitba2e87e0443069b0552b698cc7a508898a3f585d
tree82de90f1c9a69114386e6b99f43bae6fd24ce338
parentd7c0873ea77234b7b736080c3de4012d2f6adaee
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>
(cherry picked from commit 3f93a1917437ba7b69b306e4ff971b79e8b79c89)
src/librbd/operation/ResizeRequest.cc
src/librbd/operation/ResizeRequest.h
src/test/librbd/operation/test_mock_ResizeRequest.cc