]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: deep-copy should accept a lower-bound for the destination snap_id
authorJason Dillaman <dillaman@redhat.com>
Wed, 5 Feb 2020 15:42:27 +0000 (10:42 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 16 Sep 2020 17:19:29 +0000 (13:19 -0400)
commit077193e340e55907ed6f06fda7a5f3a1b0e1b61e
tree1b207f5f081e40945c236944aaa2e97522e520c4
parent1928a8f81df31358d25732faee324c8488e193ae
librbd: deep-copy should accept a lower-bound for the destination snap_id

For snapshot-based mirroring, we will want to prevent the modification of
snapshots below the last sync snapshot and to prevent the copying of data
below that lower-bound as well. This commit just adds the new parameter and
future commits will update the snapshot and object copy behavior.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit fccbc70fe15e4c92c22467b204362881b12468f1)

Conflicts:
src/librbd/DeepCopyRequest.cc: different lock types
src/tools/rbd_mirror/ImageSync.cc: trivial resolution
src/librbd/DeepCopyRequest.cc
src/librbd/DeepCopyRequest.h
src/librbd/api/Image.cc
src/test/librbd/test_mock_DeepCopyRequest.cc
src/test/rbd_mirror/test_mock_ImageSync.cc
src/tools/rbd_mirror/ImageSync.cc