mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Kernel+Userland: Support remounting filesystems :^)
This makes it possible to change flags of a mount after the fact, with the caveats outlined in the man page.
This commit is contained in:
parent
d395b93b15
commit
3847d00727
Notes:
sideshowbarker
2024-07-19 06:00:22 +09:00
Author: https://github.com/bugaevc
Commit: 3847d00727
Pull-request: https://github.com/SerenityOS/serenity/pull/2430
Reviewed-by: https://github.com/alimpfard
8 changed files with 58 additions and 0 deletions
|
@ -59,6 +59,8 @@ int main(int argc, char** argv)
|
|||
flags |= MS_NOSUID;
|
||||
else if (part == "ro")
|
||||
flags |= MS_RDONLY;
|
||||
else if (part == "remount")
|
||||
flags |= MS_REMOUNT;
|
||||
else if (part == "bind")
|
||||
fprintf(stderr, "Ignoring -o bind, as it doesn't make sense for chroot\n");
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue