-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msg: encode entity_addr_t with features #9184
Conversation
@@ -365,7 +365,7 @@ struct entity_addr_t { | |||
// broader study | |||
|
|||
|
|||
void encode(bufferlist& bl) const { | |||
void encode(bufferlist& bl, uint64_t features) const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come encode of an entity_addr_t doesn't use the features value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1617f6c
to
1153e96
Compare
retest this please |
test this please |
@@ -677,6 +677,12 @@ int cls_current_subop_num(cls_method_context_t hctx) | |||
return ctx->current_osd_subop_num; | |||
} | |||
|
|||
uint64_t cls_get_features(cls_method_context_t hctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add a dummy implementation of this to test/librados_test_sub/librados/LibradosTestStub.cc
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
…inst}_t We will eventually require features, but it will take many patches to get all callers to pass them in. While we're doing that, behave both with and without features. v2: Add entity_inst_t::dump() & entity_inst_t::generate_test_instances() Signed-off-by: Sage Weil <sage@redhat.com> Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
Expose cls methods to the current OSDMap features set. Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
For convenience. Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
In a few places, we encode oi with full features. Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
msg/simple and msg/async should explicitly encode with features 0 since the protocol is defined in terms of the legacy encoding. Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
rbd tests failed Value of: open_image(m_image_name, &ictx) so untagged for now, per @dillaman
|
Since all the call sites need features to encode entity_addr_t, now it's time to commit this require-features-patch. Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
fixed cls hook, passes make check for me now, yay! |
This needs some careful review. Mostly we're just adding arguments, but lots
of opportunity for typos.