-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
linux-like: add OPEN_TREE_CLONE and OPEN_TREE_CLOEXEC #3048
Conversation
r? @JohnTitor (rustbot has picked a reviewer for you, use r? to override) |
src/unix/linux_like/mod.rs
Outdated
@@ -616,6 +616,8 @@ pub const MS_LAZYTIME: ::c_ulong = 0x2000000; | |||
pub const MS_ACTIVE: ::c_ulong = 0x40000000; | |||
pub const MS_MGC_VAL: ::c_ulong = 0xc0ed0000; | |||
pub const MS_MGC_MSK: ::c_ulong = 0xffff0000; | |||
pub const OPEN_TREE_CLONE: ::c_uint = 0x01; | |||
pub const OPEN_TREE_CLOEXEC: ::c_uint = O_CLOEXEC as ::c_uint; |
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.
Note for reviewers: these constants are typed as uint
because they are used in the corresponding open_tree()
syscall, which is defined with an unsigned flags
argument:
SYSCALL_DEFINE3(open_tree, int, dfd, const char __user *, filename, unsigned, flags)
23bdd08
to
c578f2f
Compare
Thanks! @bors r+ |
linux-like: add OPEN_TREE_CLONE and OPEN_TREE_CLOEXEC This adds the `OPEN_TREE_CLONE` and `OPEN_TREE_CLOEXEC` constants on Linux and Android. Those are used by the `open_tree()` syscall and defined in `mount.h`: * https://github.com/torvalds/linux/blob/v6.1/include/uapi/linux/mount.h#L61-L65
💔 Test failed - checks-actions |
c578f2f
to
2fd7e81
Compare
Amended to add missing |
@bors r+ |
linux-like: add OPEN_TREE_CLONE and OPEN_TREE_CLOEXEC This adds the `OPEN_TREE_CLONE` and `OPEN_TREE_CLOEXEC` constants on Linux and Android. Those are used by the `open_tree()` syscall and defined in `mount.h`: * https://github.com/torvalds/linux/blob/v6.1/include/uapi/linux/mount.h#L61-L65
💔 Test failed - checks-actions |
CI failure:
I'm a bit out of clues about why it cannot find |
Hmm, our kernel version on musl is indeed quite old, IIUC but |
@bors delegate+ |
✌️ @lucab can now approve this pull request |
2fd7e81
to
a24de67
Compare
@bors try |
This adds the `OPEN_TREE_CLONE` and `OPEN_TREE_CLOEXEC` constants on Linux and Android. Those are used by the `open_tree()` syscall and defined in `mount.h`: * https://github.com/torvalds/linux/blob/v6.1/include/uapi/linux/mount.h#L61-L65
a24de67
to
82ded69
Compare
@bors try |
linux-like: add OPEN_TREE_CLONE and OPEN_TREE_CLOEXEC This adds the `OPEN_TREE_CLONE` and `OPEN_TREE_CLOEXEC` constants on Linux and Android. Those are used by the `open_tree()` syscall and defined in `mount.h`: * https://github.com/torvalds/linux/blob/v6.1/include/uapi/linux/mount.h#L61-L65
☀️ Try build successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14 |
Ok, so the problem with musl tests is that the headers snapshot at https://github.com/sabotage-linux/kernel-headers is from version I've reworked the tests to take that into account, and bors CI is green now. |
Thank you! @bors r+ |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14 |
This adds the
OPEN_TREE_CLONE
andOPEN_TREE_CLOEXEC
constants on Linux and Android.Those are used by the
open_tree()
syscall and defined inmount.h
: