mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
For the following mount options, do not perform the string to flag conversions
here, because we already do them further up in vfs_donmount() in vfs_mount.c async -> MNT_ASYNC force -> MNT_FORCE multilabel -> MNT_MULTILABEL noatime -> MNT_NOATIME noclusterr -> MNT_NOCLUSTERR noclusterw -> MNT_NOCLUSTERW MFC after: 1 month
This commit is contained in:
parent
a9722ace80
commit
02a871f1ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179269
|
@ -162,27 +162,6 @@ ffs_mount(struct mount *mp, struct thread *td)
|
|||
if (vfs_getopt(mp->mnt_optnew, "acls", NULL, NULL) == 0)
|
||||
mntorflags |= MNT_ACLS;
|
||||
|
||||
if (vfs_getopt(mp->mnt_optnew, "async", NULL, NULL) == 0)
|
||||
mntorflags |= MNT_ASYNC;
|
||||
|
||||
if (vfs_getopt(mp->mnt_optnew, "force", NULL, NULL) == 0)
|
||||
mntorflags |= MNT_FORCE;
|
||||
|
||||
if (vfs_getopt(mp->mnt_optnew, "multilabel", NULL, NULL) == 0)
|
||||
mntorflags |= MNT_MULTILABEL;
|
||||
|
||||
if (vfs_getopt(mp->mnt_optnew, "noasync", NULL, NULL) == 0)
|
||||
mntandnotflags |= MNT_ASYNC;
|
||||
|
||||
if (vfs_getopt(mp->mnt_optnew, "noatime", NULL, NULL) == 0)
|
||||
mntorflags |= MNT_NOATIME;
|
||||
|
||||
if (vfs_getopt(mp->mnt_optnew, "noclusterr", NULL, NULL) == 0)
|
||||
mntorflags |= MNT_NOCLUSTERR;
|
||||
|
||||
if (vfs_getopt(mp->mnt_optnew, "noclusterw", NULL, NULL) == 0)
|
||||
mntorflags |= MNT_NOCLUSTERW;
|
||||
|
||||
if (vfs_getopt(mp->mnt_optnew, "snapshot", NULL, NULL) == 0)
|
||||
mntorflags |= MNT_SNAPSHOT;
|
||||
|
||||
|
|
Loading…
Reference in a new issue