-
Notifications
You must be signed in to change notification settings - Fork 191
Factor out a new top-level mount
module.
#763
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
c7c4362
to
58d17fb
Compare
Create `rustix::mount`, and move the mount-related and fsopen-related functions into it, adding deprecated aliases in `rustix::fs` for compatibility. This also renames several functions which are all specialized forms of the `mount` system call, so I renamed them to have `mount` at the beginning. It also fixes the collision with the real `move_mount` system call. - `remount` to `mount_remount` - `bind_mount` to `mount_bind` - `recursive_bind_mount` to `mount_recursive_bind` - `change_mount` to `mount_change` - `move_mount` to `mount_move` And, it adds documentation links to a [new repository] I set up to host formatted versions of the draft manual pages that were posted. [new repository]: https://github.com/sunfishcode/linux-mount-api-documentation
05420f2
to
54ff6cc
Compare
Small nit: since we're renaming things, I wonder if Looks great otherwise! (Based on the PR description, won't have time to look at code) |
Thanks! The documentation calls it a "recursive bind mount" so the answer to "what kind of mount is it?" is "a recursive bind one", so I went with |
Sounds good! |
See [this comment] for details. [this comment]: #763 (comment)
See [this comment] for details. [this comment]: #763 (comment)
Create
rustix::mount
, and move the mount-related and fsopen-related functions into it, adding deprecated aliases inrustix::fs
for compatibility.This also renames several functions which are all specialized forms of the
mount
system call, so I renamed them to havemount
at the beginning. It also fixes the collision with the realmove_mount
system call.remount
tomount_remount
bind_mount
tomount_bind
recursive_bind_mount
tomount_recursive_bind
change_mount
tomount_change
move_mount
tomount_move
And, it adds documentation links to a new repository I set up to host formatted versions of the draft manual pages that were posted.
@yujincheng08 @SUPERCILEX