diff options
author | pjd <pjd@FreeBSD.org> | 2004-03-17 18:10:38 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-03-17 18:10:38 +0000 |
commit | f8bf3c92312abdc3bfe7c1cfe449b556d2734c05 (patch) | |
tree | b5e92d9d8d6937314718bb2d96b77a4ac0133cd0 /sys/nfsclient/nfs_socket.c | |
parent | 05a1f56fc999f634406946e831eea6deaaa75a99 (diff) | |
download | FreeBSD-src-f8bf3c92312abdc3bfe7c1cfe449b556d2734c05.zip FreeBSD-src-f8bf3c92312abdc3bfe7c1cfe449b556d2734c05.tar.gz |
Don't report EPIPE errors on nfs sockets. These can be due to idle tcp
mounts which will be closed by netapp, solaris, etc. if left idle too long.
Obtained from: NetBSD
Diffstat (limited to 'sys/nfsclient/nfs_socket.c')
-rw-r--r-- | sys/nfsclient/nfs_socket.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c index d74ae8e..a6c8186 100644 --- a/sys/nfsclient/nfs_socket.c +++ b/sys/nfsclient/nfs_socket.c @@ -452,8 +452,11 @@ nfs_send(struct socket *so, struct sockaddr *nam, struct mbuf *top, } if (error) { - log(LOG_INFO, "nfs send error %d for server %s\n", error, - rep->r_nmp->nm_mountp->mnt_stat.f_mntfromname); + if (error != EPIPE) { + log(LOG_INFO, "nfs send error %d for server %s\n", + error, + rep->r_nmp->nm_mountp->mnt_stat.f_mntfromname); + } /* * Deal with errors for the client side. */ |