From 0cc3c4a023b1dad5de0a08f8e72de077878d77ce Mon Sep 17 00:00:00 2001 From: fvdl Date: Wed, 9 May 2001 20:02:32 +0000 Subject: [PATCH] Suppress another case of a potentially noisy error message which isn't fatal. --- sys/nfs/nfs_socket.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index f3bd7a251d02..02115d089e7e 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $NetBSD: nfs_socket.c,v 1.66 2001/02/21 21:39:57 jdolecek Exp $ */ +/* $NetBSD: nfs_socket.c,v 1.67 2001/05/09 20:02:32 fvdl Exp $ */ /* * Copyright (c) 1989, 1991, 1993, 1995 @@ -464,8 +464,15 @@ nfs_send(so, nam, top, rep) else rep->r_flags |= R_MUSTRESEND; } - } else - log(LOG_INFO, "nfsd send error %d\n", error); + } else { + /* + * See above. This error can happen under normal + * circumstances and the log is too noisy. + * The error will still show up in nfsstat. + */ + if (error != ENOBUFS || so->so_type != SOCK_DGRAM) + log(LOG_INFO, "nfsd send error %d\n", error); + } /* * Handle any recoverable (soft) socket errors here. (? ? ?)