nix
nix copied to clipboard
mount/linux: add a safe wrapper for open_tree(2)
This adds an ergonomic wrapper for the Linux-specific open_tree(2)
syscall, using safe-io file descriptors.
The syscall has been introduced in kernel version 5.2 and allows
FD-based manipulation of mount hierarchies.
Mmh, it looks like the libc
crate is missing some constants on Android and uclibc. I'll try to find some time to look into that.
Ok, I landed several fixes in libc
and now the CI here is green. This is ready for review.
@rtzoeller @asomers may I ask for a review on this one?
Sorry for such a slow response! And thanks for you work!
I have left some comments on this PR :)
@SteveLauC thanks for the review! (And no need to apologise :blue_heart:)
I've rebased against latest master
and addressed the comments.
Gentle on the author @lucab, would you like to finish this PR:)