diff options
author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-01-04 21:43:50 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-01-04 21:43:50 +0100 |
commit | a907297de452ed14121bc6401403fc2ff0e2c093 (patch) | |
tree | e1264384162141c6bd722fa4a2b6a59fcf7c6c2c /fs | |
parent | 6fc06ef91e68489d80b2906bb57bd2e7d279e198 (diff) | |
download | history-a907297de452ed14121bc6401403fc2ff0e2c093.tar.gz |
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 <cel@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 60326e6572bfbb..afa7022b02a836 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1197,7 +1197,8 @@ void nfs_writeback_done(struct rpc_task *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. */ |