mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +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
8 changed files with 58 additions and 0 deletions
|
@ -52,6 +52,8 @@ int parse_options(const StringView& options)
|
|||
flags |= MS_BIND;
|
||||
else if (part == "ro")
|
||||
flags |= MS_RDONLY;
|
||||
else if (part == "remount")
|
||||
flags |= MS_REMOUNT;
|
||||
else
|
||||
fprintf(stderr, "Ignoring invalid option: %s\n", part.to_string().characters());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue