diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-28 21:12:13 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-29 07:53:30 +0200 |
commit | 3847d007271a58b33658f400d092e72e7e087db6 (patch) | |
tree | e75b5c94ba39f25a6e188f2652d5287efa947abc /Userland/mount.cpp | |
parent | d395b93b150ab1819f4480d966169e6ef12b636b (diff) | |
download | serenity-3847d007271a58b33658f400d092e72e7e087db6.zip |
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.
Diffstat (limited to 'Userland/mount.cpp')
-rw-r--r-- | Userland/mount.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/mount.cpp b/Userland/mount.cpp index 35085a0f58..da75ea5e9a 100644 --- a/Userland/mount.cpp +++ b/Userland/mount.cpp @@ -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()); } |