mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
Userland+SystemMonitor: Recognize the MS_RDONLY mount flag
This commit is contained in:
parent
fdb71cdf8f
commit
4b300e085d
3 changed files with 11 additions and 4 deletions
|
@ -50,6 +50,8 @@ int parse_options(const StringView& options)
|
|||
flags |= MS_NOSUID;
|
||||
else if (part == "bind")
|
||||
flags |= MS_BIND;
|
||||
else if (part == "ro")
|
||||
flags |= MS_RDONLY;
|
||||
else
|
||||
fprintf(stderr, "Ignoring invalid option: %s\n", part.to_string().characters());
|
||||
}
|
||||
|
@ -157,7 +159,7 @@ bool print_mounts()
|
|||
|
||||
printf("%s on %s type %s (", source.characters(), mount_point.characters(), class_name.characters());
|
||||
|
||||
if (readonly)
|
||||
if (readonly || mount_flags & MS_RDONLY)
|
||||
printf("ro");
|
||||
else
|
||||
printf("rw");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue