]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ceph: add version field to message header
authorSage Weil <sage@newdream.net>
Tue, 13 Oct 2009 19:55:26 +0000 (12:55 -0700)
committerSage Weil <sage@newdream.net>
Tue, 13 Oct 2009 19:55:26 +0000 (12:55 -0700)
This makes it easier for individual message types to indicate
their particular encoding, and make future changes backward
compatible.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/msgr.h

index 73921ae43faad664e245f9af605fb783d2b703ae..9abc879e25b1b3f3f3b27c5000a6abaaac5523d0 100644 (file)
@@ -21,7 +21,7 @@
  * whenever the wire protocol changes.  try to keep this string length
  * constant.
  */
-#define CEPH_BANNER "ceph v021"
+#define CEPH_BANNER "ceph v022"
 #define CEPH_BANNER_MAX_LEN 30
 
 
@@ -125,6 +125,7 @@ struct ceph_msg_header {
        __le64 seq;       /* message seq# for this session */
        __le16 type;      /* message type */
        __le16 priority;  /* priority.  higher value == higher priority */
+       __le16 version;   /* version of message encoding */
 
        __le32 front_len; /* bytes in main payload */
        __le32 middle_len;/* bytes in middle payload */