From: minoura@valinux.co.jp (Minoura Makoto) Subject: [PATCH] inappropriate error message Date: Wed, 10 Apr 2002 14:56:56 +0900 Sender: nfs-admin@lists.sourceforge.net Message-ID: <20020410055656.EB16D19F26B@brer.local.valinux.co.jp> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from gw1.valinux.co.jp ([202.221.173.98] helo=brer.local.valinux.co.jp) by usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 16vB6K-0001pd-00 for ; Tue, 09 Apr 2002 22:57:00 -0700 To: nfs@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: Finally, a trivial patch to correct an inappropriate error message. -- Minoura Makoto Engineering Dept., VA Linux Systems Japan --- net/sunrpc/svcsock.c.orig Wed Mar 27 21:51:43 2002 +++ net/sunrpc/svcsock.c Wed Mar 27 22:01:30 2002 @@ -898,9 +898,14 @@ sent = svc_sendto(rqstp, bufp->iov, bufp->nriov); if (sent != bufp->len<<2) { - printk(KERN_NOTICE "rpc-srv/tcp: %s: sent only %d bytes of %d - should shutdown socket\n", - rqstp->rq_sock->sk_server->sv_name, - sent, bufp->len << 2); + if (sent < 0) + printk(KERN_NOTICE "rpc-srv/tcp: %s: TCP send error %d - shutting down socket\n", + rqstp->rq_sock->sk_server->sv_name, + sent); + else + printk(KERN_NOTICE "rpc-srv/tcp: %s: sent only %d bytes of %d - shutting down socket\n", + rqstp->rq_sock->sk_server->sv_name, + sent, bufp->len << 2); svc_delete_socket(rqstp->rq_sock); sent = -EAGAIN; } _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs