* NFS partial writes
@ 2003-09-29 7:54 Kenny Simpson
0 siblings, 0 replies; only message in thread
From: Kenny Simpson @ 2003-09-29 7:54 UTC (permalink / raw)
To: linux-kernel
Hi, in nfs_writepage_sync in fs/nfs/write.c I see:
result = NFS_PROTO(inode)->write(inode, cred,
&fattr, flags,
offset, wsize,
page, &verf);
if (result < 0) {
/* Must mark the page invalid after I/O
error */
ClearPageUptodate(page);
goto io_error;
}
if (result != wsize)
printk("NFS: short write, wsize=%u,
result=%d\n",
wsize, result);
refresh = 1;
buffer += wsize;
base += wsize;
offset += wsize;
written += wsize;
count -= wsize;
Shouldn't buffer, base, offset, written, and count be
(inc|dec)remented by result instead of wsize?
This is with the latest CVS version of 2.5, but the
identical code is in Red Hat's 2.4.20-20.9.
-Kenny
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-29 7:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29 7:54 NFS partial writes Kenny Simpson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®