Repository navigation
librbd: add preliminary support for new operation feature bit - #19903
Conversation
5c789ec to
186f690
Compare
The layering and data-pool features are enabled automatically when striping or a data pool is specified, respectively. For the 'rbd feature XYZ' command, hide all non-mutable features. Signed-off-by: Jason Dillaman <[email protected]>
186f690 to
efbe323
Compare
There was a problem hiding this comment.
@dillaman I am not sure I quite understand how it is going to be used. This looks like it should have been explained in the commit 3fe7a2a3 log message, which looks like truncated.
So operations_disabled is true, when m_op_features contains an unknown bit, i.e. we are an older client. Then we can't do any operations? Probably, I will need just to wait for the next PR to see a use case )
There was a problem hiding this comment.
Sorry, I fixed the truncated commit message. The goal is to avoid introducing individual feature bits that break older clients when the older clients can still safely read and write to the image but they won't know how to properly handle some new feature. The two immediate examples will be (1) cloning v2 where snapshots will be unprotected so we cannot let an older client delete a clone that uses the new format and (2) image groups where we cannot let images be removed when they are part of a group w/o cleaning up.
This will initially be utilized to restrict older clients from performing operations against an image if (1) it doesn't support the new feature bit, or (2) doesn't support the specific enabled op feature. Signed-off-by: Jason Dillaman <[email protected]>
Signed-off-by: Jason Dillaman <[email protected]>
Signed-off-by: Jason Dillaman <[email protected]>
efbe323 to
ffdb653
Compare
Disable support for RBD_FEATURE_OPERATIONS in rbd controller (introduced in PR: ceph#19903, 209f6fc) Signed-off-by: Ernesto Puerta <[email protected]>
Disable support for RBD_FEATURE_OPERATIONS in rbd controller (introduced in PR: ceph#19903, 209f6fc) Signed-off-by: Ernesto Puerta <[email protected]>
Disable support for RBD_FEATURE_OPERATIONS in rbd controller (introduced in PR: ceph#19903, 209f6fc) Signed-off-by: Ernesto Puerta <[email protected]>
This feature bit will be used to disable operations (e.g. clone, snap create