rpc: xdr_truncate_encode
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 25 Feb 2014 22:44:21 +0000 (17:44 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 30 May 2014 21:31:47 +0000 (17:31 -0400)
This will be used in the server side in a few cases:
- when certain operations (read, readdir, readlink) fail after
  encoding a partial response.
- when we run out of space after encoding a partial response.
- in readlink, where we initially reserve PAGE_SIZE bytes for
  data, then truncate to the actual size.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>

No differences found