mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Add the following mount options to the nfs_opts array:
noatime, noexec, suiddir, nosuid, nosymfollow, union, noclusterr, noclusterw, multilabel, acls, force, update, async. These options correspond to MOPT_STDOPTS, MOPT_FORCE, MOPT_UPDATE, and MOPT_ASYNC. Currently, mount_nfs converts these "-o" options from strings to MNT_ flags via getmntopts(), and passes the flags from userspace to the kernel. This change will allow us in future to pass these mount options as strings directly to the kernel via nmount() when doing NFS mounts.
This commit is contained in:
parent
5e8bbdf131
commit
fab2013cb7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173068
@ -705,7 +705,10 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp)
|
||||
}
|
||||
}
|
||||
|
||||
static const char *nfs_opts[] = { "from", "nfs_args", NULL };
|
||||
static const char *nfs_opts[] = { "from", "nfs_args",
|
||||
"noatime", "noexec", "suiddir", "nosuid", "nosymfollow", "union",
|
||||
"noclusterr", "noclusterw", "multilabel", "acls", "force", "update",
|
||||
"async", NULL };
|
||||
|
||||
/*
|
||||
* VFS Operations.
|
||||
|
Loading…
Reference in New Issue
Block a user