]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: create primary mirror snapshot when enabling mirroring
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Jan 2020 20:35:48 +0000 (15:35 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 31 Jan 2020 04:14:20 +0000 (23:14 -0500)
commit1d58b16c99cf10c641b368e2e2f39adedbcb00cd
treee77f3cbca937983b08bf7f96f1c1cbf47b8be3f1
parent399a335de4d9e9b8c9395c16c346b62c8a35d5c9
librbd: create primary mirror snapshot when enabling mirroring

This will create an initial primary mirror snapshot when enabling
snapshot-based mirroring on an image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Migration.cc
src/librbd/mirror/EnableRequest.cc
src/librbd/mirror/EnableRequest.h
src/librbd/mirror/snapshot/CreatePrimaryRequest.cc
src/test/librbd/test_mirroring.cc