]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: EnableRequest now accepts a boolean to indicate a clean image
authorJason Dillaman <dillaman@redhat.com>
Wed, 22 Apr 2020 15:57:45 +0000 (11:57 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 23 Apr 2020 17:19:49 +0000 (13:19 -0400)
commitea64ba5a6f2a73e3440244c0b358b948647670c5
tree94bc3115291ea9eb942a9df8b91e5ae69c2a217b
parent959d5e60d8a7eec96c71875cf69d1d4a7d80816d
librbd: EnableRequest now accepts a boolean to indicate a clean image

If the image is clean, it's treated as if it was newly created and
therefore clean since snapshot id 0. The CreateRequest and
CloneRequest state machines pass true for this bool if mirroring
is being enabled during creation.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Migration.cc
src/librbd/api/Mirror.cc
src/librbd/api/Trash.cc
src/librbd/image/CloneRequest.cc
src/librbd/image/CreateRequest.cc
src/librbd/mirror/EnableRequest.cc
src/librbd/mirror/EnableRequest.h
src/librbd/operation/EnableFeaturesRequest.cc
src/test/librbd/image/test_mock_CloneRequest.cc
src/test/librbd/operation/test_mock_EnableFeaturesRequest.cc