-
Notifications
You must be signed in to change notification settings - Fork 1.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
API to get group information and to change file ownership #2314
API to get group information and to change file ownership #2314
Conversation
9899bb3
to
25ca367
Compare
bbf24d2
to
5424c1d
Compare
rebased instead of merge commit. |
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.
we are closer =)
left a couple comments.
5424c1d
to
06e8164
Compare
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.
lgtm
@scylladb/seastar-maint hello maintainers, could you help review this change? |
06e8164
to
da2ee2e
Compare
@muthu90tech when you push a new version and ask for a review, please write a comment saying what you changed from the previous version. |
da2ee2e
to
fe2a67c
Compare
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.
changes made:
- Made the ec() method public in seastar/src/core/syscall_result.hh > syscall_result
- Modified the test, to assert on error code as well
- the memset on buf not needed as getgrnam only writes to it.
- removed unnecessary var to hold buffer length.
Commit Sep 15:
@nyh
After reading comments from @avikivity , I have created a separate seastar specific group struct and named it group_details
fe2a67c
to
653962d
Compare
653962d
to
02e6796
Compare
02e6796
to
b47563a
Compare
@@ -61,6 +61,14 @@ struct directory_entry { | |||
std::optional<directory_entry_type> type; | |||
}; | |||
|
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.
Add APIs to get group details and to change ownership of file.
Please enrich the patch changelog with the details.
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.
Add APIs to get group details and to change ownership of file.
Please enrich the patch changelog with the details.
Thanks @avikivity , I have added details to the commit log
There are a few calls in scylladb that bypass Seastar APIs when making libc and syscall (getgrnam, chown), see issue scylladb/scylladb#17443. This commit implements those APIs, which can be used to address the issue scylladb/scylladb#17443
b47563a
to
6daa5f3
Compare
Please drop the artificial merge commit. |
96693f5
to
6daa5f3
Compare
@avikivity , apologies, syncing my fork resulted in this, corrected it now. |
The scylladb codebase is bypassing seastar api to make syscalls directly, instead add seastar APIs for those syscall and use it in the transport/controller.cc in scylla
see issue: scylladb/scylladb#17443