From 40d3ad15856c88d93d16264aa1f6bb55806aafde Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 28 Jul 2010 06:23:31 +0000 Subject: changes to rpc - use mem-pool for requests and saved_frames. - preserve the rpc_req structure till rpc invokes program's reply. This will enable us to store transport specific data that has to last till reply has come (eg., memory regions of chunk lists in case of rdma). - change signature of rpc_clnt_submit to accept rsphdr_vector and rsppayload_vector. The buffers pointed by these vectors will be from iobufs and these iobufs are added to an iobref which should also be passed as an arguement to rpc_clnt_submit. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875 --- rpc/rpc-lib/src/xdr-common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rpc/rpc-lib/src/xdr-common.h') diff --git a/rpc/rpc-lib/src/xdr-common.h b/rpc/rpc-lib/src/xdr-common.h index 7ba1372529c..b3ce29e5dbe 100644 --- a/rpc/rpc-lib/src/xdr-common.h +++ b/rpc/rpc-lib/src/xdr-common.h @@ -50,12 +50,12 @@ struct auth_glusterfs_parms { u_int gid; u_int ngrps; u_int groups[16]; -}; +} __attribute__((packed)); typedef struct auth_glusterfs_parms auth_glusterfs_parms; struct gf_dump_req { u_quad_t gfs_id; -}; +} __attribute__((packed)); typedef struct gf_dump_req gf_dump_req; struct gf_prog_detail { @@ -63,7 +63,7 @@ struct gf_prog_detail { u_quad_t prognum; u_quad_t progver; struct gf_prog_detail *next; -}; +} __attribute__((packed)); typedef struct gf_prog_detail gf_prog_detail; struct gf_dump_rsp { @@ -71,7 +71,7 @@ struct gf_dump_rsp { int op_ret; int op_errno; struct gf_prog_detail *prog; -}; +}__attribute__((packed)); typedef struct gf_dump_rsp gf_dump_rsp; extern bool_t -- cgit