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
mds: allow client to request caps when opening file #7952
Conversation
Allow client to request xattrs while opening file. MDS adds xattrs and corresponding caps to the reply. This is important for selinux on kcephfs. Fixes: ceph#14360 Signed-off-by: Yan, Zheng <zyan@redhat.com>
This needs a qa-suite test. Also, it doesn't seem to include the bits for actually sending back xattrs on an open? |
the new line "mdr->getattr_caps = mask" in handle_client_open() does the trick |
Oh, because that's used in encode_inodestat() to include the xattrs on reply. Still needs a test though. :) |
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Oh, didn't read closely enough. Looks like it just needs to run against a different conf file.
|
Pushed a quick change moving the test into multiclient and will test again. |
Allow client to request xattrs while opening file. MDS adds xattrs
and corresponding caps to the reply. This is important for selinux
on kcephfs.
Fixes: #14360
Signed-off-by: Yan, Zheng zyan@redhat.com