dCache / nfs4j

Pure Java NFSv3 and NFSv4.2 implementation
Other
240 stars 76 forks source link

avoid extra copy of data buffer in nfs3.read #27

Closed radai-rosenblatt closed 10 years ago

radai-rosenblatt commented 10 years ago

for the case where # of bytes read == count the copy is definitely not required. i dont know if nfs allows returning a buffer larger than the amount of actual data in it (on the one hand there is a count field in the response, on the other the rfc says nothing) - so i left the copy in place for those cases. however, i think that bytesRead==count should be fairly common for files larger then the max buffer size (32k by default).

i've also removed an unused UnixUser.

dcache-ci commented 10 years ago

Can one of the admins verify this patch?

kofemann commented 10 years ago

ok to test.

dcache-ci commented 10 years ago

Test PASSed.