Add support in read/pread to be aware of the Maximum Read size that the server
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 18 Jun 2011 22:43:28 +0000 (08:43 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 18 Jun 2011 22:43:28 +0000 (08:43 +1000)
commit921f877be4ac27e50e60dfa855513612c1103388
tree64e38f06ef44ba7770067138d3677c4185a628ff
parente2ba5764d46b29756973fdb20332a8fcfb5bbfd1
Add support in read/pread to be aware of the Maximum Read size that the server
suggested.

When a read/pread operation that is 'oversize' is issued, the read/pread command will internally chop this up into smaller chunsk and send then concurrently to the server.
As replies come back from the server we add the data to a reassembly buffer
and as soon as all replies have been received we invoke the callback and pass the reassembly buffer back to the application.
examples/nfsclient-async.c
lib/libnfs.c