]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: track reason why ImageCtx is read-only
authorJason Dillaman <dillaman@redhat.com>
Tue, 3 Mar 2020 20:17:52 +0000 (15:17 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 10 Mar 2020 23:23:02 +0000 (19:23 -0400)
commit2d45060d3a426e68f71f5c4d2ac824ce10c08d0e
tree99c62903e8383388e1a35dae327c2291de0cf34f
parenteff1380b150ed542790792223d0566894ef14776
librbd: track reason why ImageCtx is read-only

This will be utilized by the RefreshRequest state machine to flag the image
as read-only if the new RBD_FEATURE_NON_PRIMARY feature is enabled. Also
allow that flag to be masked out by rbd-mirror daemon to permit IO and
operations against a non-primary image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/Types.h
src/librbd/image/DetachChildRequest.cc
src/librbd/image/OpenRequest.cc
src/librbd/image/RefreshRequest.cc
src/librbd/image/RefreshRequest.h
src/test/librbd/image/test_mock_DetachChildRequest.cc
src/test/librbd/image/test_mock_RefreshRequest.cc
src/test/librbd/mock/MockImageCtx.h