summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_diskless.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2011-05-04 13:27:45 +0000
committerru <ru@FreeBSD.org>2011-05-04 13:27:45 +0000
commitb0a86c9f257a1311ae8daa811c6c3b6e199f05e5 (patch)
tree4b861261899defb3fa31ca5958853bd86a0388d8 /sys/nfs/nfs_diskless.c
parentc5a0d73cf16c8dff00d2586d802bc17e15a00566 (diff)
downloadFreeBSD-src-b0a86c9f257a1311ae8daa811c6c3b6e199f05e5.zip
FreeBSD-src-b0a86c9f257a1311ae8daa811c6c3b6e199f05e5.tar.gz
Implemented a mount option "nocto" that disables cache coherency
checking at open time. It may improve performance for read-only NFS mounts. Use deliberately. MFC after: 1 week Reviewed by: rmacklem, jhb (earlier version)
Diffstat (limited to 'sys/nfs/nfs_diskless.c')
-rw-r--r--sys/nfs/nfs_diskless.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/nfs/nfs_diskless.c b/sys/nfs/nfs_diskless.c
index fad6ef0..26f5036 100644
--- a/sys/nfs/nfs_diskless.c
+++ b/sys/nfs/nfs_diskless.c
@@ -112,6 +112,8 @@ nfs_parse_options(const char *envopts, struct nfs_args *nd)
nd->flags |= NFSMNT_NOCONN;
else if (strcmp(o, "nolockd") == 0)
nd->flags |= NFSMNT_NOLOCKD;
+ else if (strcmp(o, "nocto") == 0)
+ nd->flags |= NFSMNT_NOCTO;
else if (strcmp(o, "nfsv2") == 0)
nd->flags &= ~(NFSMNT_NFSV3 | NFSMNT_NFSV4);
else if (strcmp(o, "nfsv3") == 0) {
OpenPOWER on IntegriCloud