aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsclient/nfs.h
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1997-05-10 16:12:03 +0000
committerDoug Rabson <dfr@FreeBSD.org>1997-05-10 16:12:03 +0000
commit5ae0f71815d5e8e1fcd919f28e0d131f70eeb456 (patch)
tree689096249f70d6f3df4b453897d1be31f816e58f /sys/nfsclient/nfs.h
parent057df964f492d99406332766d7cd611eef2d12b9 (diff)
downloadsrc-5ae0f71815d5e8e1fcd919f28e0d131f70eeb456.tar.gz
src-5ae0f71815d5e8e1fcd919f28e0d131f70eeb456.zip
Fix a nasty hang connected with write gathering. Also add debug print
statements to bits of the server which helped me find the hang.
Notes
Notes: svn path=/head/; revision=25663
Diffstat (limited to 'sys/nfsclient/nfs.h')
-rw-r--r--sys/nfsclient/nfs.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h
index 59033bfe67ea..a3c45bd5657d 100644
--- a/sys/nfsclient/nfs.h
+++ b/sys/nfsclient/nfs.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs.h 8.4 (Berkeley) 5/1/95
- * $Id: nfs.h,v 1.23 1997/03/27 20:01:03 guido Exp $
+ * $Id: nfs.h,v 1.24 1997/03/29 12:34:33 bde Exp $
*/
#ifndef _NFS_NFS_H_
@@ -517,6 +517,23 @@ extern int nfsd_head_flag;
!bcmp((caddr_t)&(o)->nd_cr, (caddr_t)&(n)->nd_cr, \
sizeof (struct ucred)))
+#ifdef NFS_DEBUG
+
+extern int nfs_debug;
+#define NFS_DEBUG_ASYNCIO 1 /* asynchronous i/o */
+#define NFS_DEBUG_WG 2 /* server write gathering */
+#define NFS_DEBUG_RC 4 /* server request caching */
+
+#define NFS_DPF(cat, args) \
+ do { \
+ if (nfs_debug & NFS_DEBUG_##cat) printf args; \
+ } while (0)
+
+#else
+
+#define NFS_DPF(cat, args)
+
+#endif
int nfs_init __P((struct vfsconf *vfsp));
int nfs_reply __P((struct nfsreq *));