]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerNathan Cutler <ncutler@suse.com>
Wed, 29 Apr 2020 12:06:57 +0000 (14:06 +0200)
commitbef680dca136c009fe444918837698116a41334d
treea9782f141fdcda0554ff3bbb566e82d99417c705
parent126d720f0c98c4e6b47c78e79388ed6c2ba4c65a
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>
(cherry picked from commit 931c9f0fd9332136466a8d81c9708b86f597f4be)
src/librbd/mirror/EnableRequest.cc
src/librbd/mirror/EnableRequest.h