]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 13 Feb 2020 13:11:17 +0000 (08:11 -0500)
commitfccbc70fe15e4c92c22467b204362881b12468f1
tree5970f955704478117227aba50e0cd6ecc7b97b2a
parent8168adf8d89f244f70780ea609596f67ff77afba
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>
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