From e82ca8fc5164f4ba2ff396da86b4a490d9a47370 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 23 Jun 2010 02:55:21 +0000 Subject: minor improvements in protocol * rpc_clnt_submit() now takes 'cbkfn' as an argument. * readdir xdr now uses dirent structure directly instead of using 'opaque' buffer through which it was serializing / unserializing the dirent structure. * 'gfs_id' field (currently used for debugging) is properly updated Signed-off-by: Amar Tumballi 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 --- xlators/protocol/lib/src/protocol-common.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'xlators/protocol/lib/src/protocol-common.h') diff --git a/xlators/protocol/lib/src/protocol-common.h b/xlators/protocol/lib/src/protocol-common.h index 98a79d0fa17..5378d90ba45 100644 --- a/xlators/protocol/lib/src/protocol-common.h +++ b/xlators/protocol/lib/src/protocol-common.h @@ -20,11 +20,6 @@ #ifndef _PROTOCOL_COMMON_H #define _PROTOCOL_COMMON_H -#define GF_PROTOCOL_DEFAULT_PORT 6971 - -#define GF_LOCAL_IOV 1 /* All headers are here */ -#define GF_EXTRA_IOV 2 /* needed for write/read etc */ - enum gf_fop_procnum { GFS3_OP_NULL, /* 0 */ GFS3_OP_STAT, @@ -79,6 +74,7 @@ enum gf_handshake_procnum { GF_HNDSK_SETVOLUME, GF_HNDSK_GETSPEC, GF_HNDSK_PING, + GF_HNDSK_MAXVALUE, }; enum gf_mgmt_procnum { @@ -96,9 +92,4 @@ enum gf_mgmt_procnum { #define GLUSTER_HNDSK_PROGRAM 14398633 /* Completely random */ #define GLUSTER_HNDSK_VERSION 1 /* 0.0.1 */ -int -gf_dirent_unserialize (gf_dirent_t *entries, const char *buf, size_t buf_size); -int -gf_dirent_serialize (gf_dirent_t *entries, char *buf, size_t buf_size); - #endif /* !_PROTOCOL_COMMON_H */ -- cgit