Skip to content
Commit ac503e4a authored by Benjamin Coddington's avatar Benjamin Coddington Committed by J. Bruce Fields
Browse files

nfsd: use short read as well as i_size to set eof



Use the result of a local read to determine when to set the eof flag.  This
allows us to return the location of the end of the file atomically at the
time of the read.

Signed-off-by: default avatarBenjamin Coddington <bcodding@redhat.com>
[bfields: add some documentation]
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 4b15da44
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment