summaryrefslogtreecommitdiffstats
path: root/libglusterfs
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
commit66224718ab57238e16b30d8b461c380d64df237c (patch)
tree10378539c11985cef53ba1121ab18d52c903a9db /libglusterfs
parentdc321571317b911faa31eed8b3bd4ce396963179 (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')
-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 b17f83bcd8f..10db213f5af 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;