summaryrefslogtreecommitdiff
path: root/Userland/mount.cpp
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-05-28 21:12:13 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-29 07:53:30 +0200
commit3847d007271a58b33658f400d092e72e7e087db6 (patch)
treee75b5c94ba39f25a6e188f2652d5287efa947abc /Userland/mount.cpp
parentd395b93b150ab1819f4480d966169e6ef12b636b (diff)
downloadserenity-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.cpp2
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());
}