diff options
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r-- | sys/kern/vfs_mount.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index f1124c7..e4e2524 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -129,6 +129,7 @@ struct vnode *rootvnode; static const char *global_opts[] = { "fstype", "fspath", + "rdonly", "ro", "rw", "suid", @@ -549,6 +550,9 @@ vfs_donmount(struct thread *td, int fsflags, struct uio *fsoptions) if (vfs_getopt(optlist, "ro", NULL, NULL) == 0) fsflags |= MNT_RDONLY; + if (vfs_getopt(optlist, "rdonly", NULL, NULL) == 0) + fsflags |= MNT_RDONLY; + if (vfs_getopt(optlist, "rw", NULL, NULL) == 0) fsflags &= ~MNT_RDONLY; |