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.
This commit is contained in:
matt 2004-03-10 22:36:42 +00:00
parent 44d317c631
commit d377ba32b7
1 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_socket.c,v 1.100 2003/12/07 21:15:46 fvdl Exp $ */ /* $NetBSD: nfs_socket.c,v 1.101 2004/03/10 22:36:42 matt Exp $ */
/* /*
* Copyright (c) 1989, 1991, 1993, 1995 * Copyright (c) 1989, 1991, 1993, 1995
@ -39,7 +39,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.100 2003/12/07 21:15:46 fvdl Exp $"); __KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.101 2004/03/10 22:36:42 matt Exp $");
#include "fs_nfs.h" #include "fs_nfs.h"
#include "opt_nfs.h" #include "opt_nfs.h"
@ -469,9 +469,12 @@ nfs_send(so, nam, top, rep)
*/ */
rep->r_flags |= R_MUSTRESEND; rep->r_flags |= R_MUSTRESEND;
} else { } else {
log(LOG_INFO, "nfs send error %d for %s\n", if (error != EPIPE)
error, log(LOG_INFO,
rep->r_nmp->nm_mountp->mnt_stat.f_mntfromname); "nfs send error %d for %s\n",
error,
rep->r_nmp->nm_mountp->
mnt_stat.f_mntfromname);
/* /*
* Deal with errors for the client side. * Deal with errors for the client side.
*/ */