summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfsstats.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1997-05-10 16:12:03 +0000
committerdfr <dfr@FreeBSD.org>1997-05-10 16:12:03 +0000
commitff5630dff67f4c3a38f2d5f2cc72d3bc7d9c2f4e (patch)
treefd644b2975999e699cafd6b8cd7e97a492aafbe9 /sys/nfsclient/nfsstats.h
parent1a9ed5bd577915dcf35f9a3e3828524cacb87610 (diff)
downloadFreeBSD-src-ff5630dff67f4c3a38f2d5f2cc72d3bc7d9c2f4e.zip
FreeBSD-src-ff5630dff67f4c3a38f2d5f2cc72d3bc7d9c2f4e.tar.gz
Fix a nasty hang connected with write gathering. Also add debug print
statements to bits of the server which helped me find the hang.
Diffstat (limited to 'sys/nfsclient/nfsstats.h')
-rw-r--r--sys/nfsclient/nfsstats.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/nfsclient/nfsstats.h b/sys/nfsclient/nfsstats.h
index 59033bf..a3c45bd 100644
--- a/sys/nfsclient/nfsstats.h
+++ b/sys/nfsclient/nfsstats.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 *));
OpenPOWER on IntegriCloud