Subject: [PATCH] NFS: short write warning Recently a patch set was accepted to allow the Linux NFS client to handle short writes by retrying the unwritten portion of the request. The only case that now results in an error is when the server makes no progress; that is, writes zero bytes. This patch changes the kernel log warning that is generated in that case to reflect the error condition more accurately. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust --- fs/nfs/write.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -X /home/cel/src/linux/dont-diff -Naurp 01-NFS4_ALL/fs/nfs/write.c 02-nfs-short-write-msg/fs/nfs/write.c --- 01-NFS4_ALL/fs/nfs/write.c 2004-10-18 17:54:40.000000000 -0400 +++ 02-nfs-short-write-msg/fs/nfs/write.c 2004-10-21 10:34:21.157762000 -0400 @@ -1199,7 +1199,8 @@ void nfs_writeback_done(struct rpc_task } if (time_before(complain, jiffies)) { printk(KERN_WARNING - "NFS: Server wrote less than requested.\n"); + "NFS: Server wrote zero bytes, expected %u.\n", + argp->count); complain = jiffies + 300 * HZ; } /* Can't do anything about it except throw an error. */