]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: mirror enable state machine might need to open image
authorJason Dillaman <dillaman@redhat.com>
Mon, 20 Apr 2020 22:16:40 +0000 (18:16 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 23 Apr 2020 17:19:48 +0000 (13:19 -0400)
commit931c9f0fd9332136466a8d81c9708b86f597f4be
treed37c7f0e52e0bb3ab87896d8410ae7b766288fbc
parentb0c3ca63c2dff11c823d0d4456a2a07f1594fb9f
librbd: mirror enable state machine might need to open image

If attempting to create a snapshot-based mirroring primary snapshot,
the image needs to first be opened. If we weren't supplied an image,
open the image, create the snapshot, and close the image again.

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