NFSv2: EOF incorrectly set on short read
authorSachin Prabhu <sprabhu@redhat.com>
Thu, 31 May 2012 16:45:00 +0000 (17:45 +0100)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 11 Jun 2012 21:25:00 +0000 (17:25 -0400)
commit64f9a83665e4f168ff50ce1db9eb175f954048fa
tree9c940939a2df409938ca753e243b9ea1036ddade
parentc5afc8da5b881633717bfc0510792428aa01fa3f
NFSv2: EOF incorrectly set on short read

In cases where the server returns fewer bytes then those requested, we
can incorrectly set the eof flag for the file. Fixing this allows the
request to be retried with updated offset and count arguments.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/proc.c