From fab2013cb70895e03381722b09866b3e54d03cb0 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Sat, 27 Oct 2007 16:28:05 +0000 Subject: [PATCH] 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. --- sys/nfsclient/nfs_vfsops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 1460ae46ced..a1237084387 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.