summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-06-25 16:11:44 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-29 09:59:12 -0700
commit72e83f9b52b5ed4bbeed1cc1163dc8392ccf6b05 (patch)
tree47d90bdc746aa680350fda881704172c77b0fb4b /libglusterfs/src
parenta095efce3eac62cc1673722a819df7349ebf6db5 (diff)
version check between client/server made more specific to protocol only.
This patch is a step towards giving compatibility between the versions of GlusterFS. Now onwards, the protocol-version won't depend on release versions. In general, multiple glusterfs versions can have common protocol-version. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/protocol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libglusterfs/src/protocol.h b/libglusterfs/src/protocol.h
index 4bb379b2f..0f93a993a 100644
--- a/libglusterfs/src/protocol.h
+++ b/libglusterfs/src/protocol.h
@@ -35,6 +35,11 @@
#include "byte-order.h"
+/* Any changes in the protocol structure or adding new '[f,m]ops' needs to
+ * bump the protocol version by "0.1"
+ */
+/* Protocol version 1.0 was ASCII based dictionary protocol */
+#define GF_PROTOCOL_VERSION "2.0"
struct gf_stat {
uint64_t ino;