Finally, a trivial patch to correct an inappropriate error message.
--
Minoura Makoto <[email protected]>
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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs