summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-06-25 21:29:32 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-06-25 21:29:32 +0000
commitba070bba6d0518c80e0bb2ce0aa50bf4b06e3d36 (patch)
tree86400f1ed6d64d1dec199e792c0427bc13d1b6f0
parentf01efdde778bd4fdcbb77d70e53569b6e2f4faf9 (diff)
support readahead option
-rw-r--r--usr.sbin/amd/amd/nfs_ops.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/amd/amd/nfs_ops.c b/usr.sbin/amd/amd/nfs_ops.c
index 08b5ef89c3c..00921ba2a65 100644
--- a/usr.sbin/amd/amd/nfs_ops.c
+++ b/usr.sbin/amd/amd/nfs_ops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_ops.c,v 1.7 2001/03/02 06:22:04 deraadt Exp $ */
+/* $OpenBSD: nfs_ops.c,v 1.8 2001/06/25 21:29:31 niklas Exp $ */
/*-
* Copyright (c) 1990 Jan-Simon Pendry
@@ -40,7 +40,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)nfs_ops.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$OpenBSD: nfs_ops.c,v 1.7 2001/03/02 06:22:04 deraadt Exp $";
+static char *rcsid = "$OpenBSD: nfs_ops.c,v 1.8 2001/06/25 21:29:31 niklas Exp $";
#endif /* not lint */
#include "am.h"
@@ -588,6 +588,11 @@ mntfs *mf;
nfs_args.flags |= NFSMNT_MAXGRPS;
#endif /* NFSMNT_MAXGRPS */
+#ifdef NFSMNT_READAHEAD
+ if (nfs_args.readahead = hasmntval(&mnt, "readahead"))
+ nfs_args.flags |= NFSMNT_READAHEAD;
+#endif /* NFSMNT_READAHEAD */
+
#ifdef notdef
/*
* This isn't supported by the ping algorithm yet.