summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/lib/src/xdr-rpc.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2010-05-09 23:13:53 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-10 02:18:00 -0700
commit80c3061c07c46b4ac11beb5f0ebad08b8af2cafe (patch)
treec7f3f722065299f4f9400579e53ac8199300d87b /xlators/nfs/lib/src/xdr-rpc.h
parenteba21f8fb6715e3933253b0114f03a153be80649 (diff)
rpcsvc: Move xdr round up functions to rpc code
Signed-off-by: Shehjar Tikoo <shehjart@dev.gluster.com> Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 902 (iozone hangs during random read throughput test) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=902
Diffstat (limited to 'xlators/nfs/lib/src/xdr-rpc.h')
-rw-r--r--xlators/nfs/lib/src/xdr-rpc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/nfs/lib/src/xdr-rpc.h b/xlators/nfs/lib/src/xdr-rpc.h
index 4c0ee69b138..48acdaa4399 100644
--- a/xlators/nfs/lib/src/xdr-rpc.h
+++ b/xlators/nfs/lib/src/xdr-rpc.h
@@ -71,4 +71,12 @@ xdr_to_auth_unix_cred (char *msgbuf, int msglen, struct authunix_parms *au,
#define rpc_call_verf_flavour(call) (rpc_opaque_auth_flavour ((&(call)->ru.RM_cmb.cb_verf)))
#define rpc_call_verf_len(call) (rpc_opaque_auth_len ((&(call)->ru.RM_cmb.cb_verf)))
+extern int
+xdr_bytes_round_up (struct iovec *vec, size_t bufsize);
+
+extern ssize_t
+xdr_length_round_up (size_t len, size_t bufsize);
+
+void
+xdr_vector_round_up (struct iovec *vec, int vcount, uint32_t count);
#endif