]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: the first post-migration snapshot isn't always dirty 27724/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 25 Apr 2019 14:43:48 +0000 (16:43 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Apr 2019 15:15:12 +0000 (17:15 +0200)
commit5b9d85c13638965cbb5c1fa9dfc43a17984d19df
tree161e560e2d60f30f987a8f3d1675b450cc5c4fc3
parent4456dc3939816a8bcb36dfc771adb1c699b37b0f
librbd: the first post-migration snapshot isn't always dirty

Currently, the first post-migration snapshot is always marked EXISTS
(i.e. dirty).  This is wrong, because the data can be inherited from
a pre-migration snapshot, handled by deep copy.

Mark all post-migration snapshots EXISTS_CLEAN in this case.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/io/CopyupRequest.cc
src/librbd/io/CopyupRequest.h
src/test/librbd/io/test_mock_CopyupRequest.cc