]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: track in-progress migration aborting operation
authorJason Dillaman <dillaman@redhat.com>
Tue, 4 Aug 2020 21:09:57 +0000 (17:09 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 15 Sep 2020 17:58:58 +0000 (13:58 -0400)
commit2bc5229717326298ca964333fc07a38c5e48701e
treeff2f083e13dee67489d2af23fb0f96390551e01d
parentdc0b7a0006c956ada842118744ad2768ff9984a5
librbd: track in-progress migration aborting operation

We want to prevent the destination image from being used while an
abort is in-progress. Test that the image has no watchers prior to
permitting the abort, switch the migration state to ABORTING, and
treat the image as read-only if the migration state is ABORTING.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d848b4f1c083bd9f3e6eac3e186c9e7df2e22004)
src/cls/rbd/cls_rbd_types.cc
src/cls/rbd/cls_rbd_types.h
src/include/rbd/librbd.h
src/librbd/api/Migration.cc
src/librbd/image/RefreshRequest.cc
src/librbd/image/RefreshRequest.h
src/pybind/rbd/rbd.pyx
src/test/librbd/test_Migration.cc
src/tools/rbd/action/Status.cc