Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/nfs Pull up revisions 1.26-1.27 (requested by fvdl):
details: https://anonhg.NetBSD.org/src/rev/7091ff618637
branches: netbsd-1-5
changeset: 491213:7091ff618637
user: he <he%NetBSD.org@localhost>
date: Fri Apr 06 00:37:13 2001 +0000
description:
Pull up revisions 1.26-1.27 (requested by fvdl):
Adjust default NFS operation size back to 8KB on all systems
except on i386.
diffstat:
sys/nfs/nfs.h | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 7f081f93aa7b -r 7091ff618637 sys/nfs/nfs.h
--- a/sys/nfs/nfs.h Fri Apr 06 00:36:52 2001 +0000
+++ b/sys/nfs/nfs.h Fri Apr 06 00:37:13 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs.h,v 1.22.2.1 2000/12/14 23:36:59 he Exp $ */
+/* $NetBSD: nfs.h,v 1.22.2.2 2001/04/06 00:37:13 he Exp $ */
/*
* Copyright (c) 1989, 1993, 1995
* The Regents of the University of California. All rights reserved.
@@ -61,9 +61,22 @@
#ifndef NFS_MAXATTRTIMO
#define NFS_MAXATTRTIMO 60
#endif
-#define NFS_WSIZE 32768 /* Def. write data size */
-#define NFS_RSIZE 32768 /* Def. read data size */
+
+/*
+ * These can be overridden through <machine/param.h>, included via
+ * <sys/param.h>. This means that <sys/param.h> should always be
+ * included before this file.
+ */
+#ifndef NFS_WSIZE
+#define NFS_WSIZE 8192 /* Def. write data size */
+#endif
+#ifndef NFS_RSIZE
+#define NFS_RSIZE 8192 /* Def. read data size */
+#endif
+#ifndef NFS_READDIRSIZE
#define NFS_READDIRSIZE 8192 /* Def. readdir size */
+#endif
+
#define NFS_DEFRAHEAD 2 /* Def. read ahead # blocks */
#define NFS_MAXRAHEAD 4 /* Max. read ahead # blocks */
#define NFS_MAXUIDHASH 64 /* Max. # of hashed uid entries/mp */
Home |
Main Index |
Thread Index |
Old Index