diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2007-10-27 16:28:05 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2007-10-27 16:28:05 +0000 |
commit | aa4d1c093fdece2147f09920b07e8f54bb0458ac (patch) | |
tree | c3db97c195b727ffc5eb752a379656c82b6a6eec | |
parent | dfc9a5b8f5942e4c541b45fd48a1e6abc1d266b7 (diff) | |
download | FreeBSD-src-aa4d1c093fdece2147f09920b07e8f54bb0458ac.zip FreeBSD-src-aa4d1c093fdece2147f09920b07e8f54bb0458ac.tar.gz |
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.
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 1460ae4..a123708 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -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. |