]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: the first post-migration snapshot isn't always dirty 29722/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 25 Apr 2019 14:43:48 +0000 (16:43 +0200)
committerJason Dillaman <dillaman@redhat.com>
Sun, 18 Aug 2019 18:52:24 +0000 (14:52 -0400)
commit12248c7a693b90b07ae209b9626cb5712fec869f
tree7a17efedfe4ed044869303095ef4cae0a5dcb28d
parent38c0216d837b4b06d85b49e263c47136fc77b05b
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>
(cherry picked from commit 5b9d85c13638965cbb5c1fa9dfc43a17984d19df)
src/librbd/io/CopyupRequest.cc
src/librbd/io/CopyupRequest.h
src/test/librbd/io/test_mock_CopyupRequest.cc