diff options
author | Sage Weil <sage@newdream.net> | 2009-10-13 15:55:26 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-10-13 15:55:26 -0400 |
commit | 535bbb530764b1b2b3b732837f0e61e1baae7109 (patch) | |
tree | 9e1fae00cbfdae92638f049e20d14863abc33716 /fs/ceph/msgr.h | |
parent | 572033069dbc2cff8d4a2d2b34c576e1813fda70 (diff) |
ceph: add version field to message header
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>
Diffstat (limited to 'fs/ceph/msgr.h')
-rw-r--r-- | fs/ceph/msgr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/msgr.h b/fs/ceph/msgr.h index 73921ae43faa..9abc879e25b1 100644 --- a/fs/ceph/msgr.h +++ b/fs/ceph/msgr.h | |||
@@ -21,7 +21,7 @@ | |||
21 | * whenever the wire protocol changes. try to keep this string length | 21 | * whenever the wire protocol changes. try to keep this string length |
22 | * constant. | 22 | * constant. |
23 | */ | 23 | */ |
24 | #define CEPH_BANNER "ceph v021" | 24 | #define CEPH_BANNER "ceph v022" |
25 | #define CEPH_BANNER_MAX_LEN 30 | 25 | #define CEPH_BANNER_MAX_LEN 30 |
26 | 26 | ||
27 | 27 | ||
@@ -125,6 +125,7 @@ struct ceph_msg_header { | |||
125 | __le64 seq; /* message seq# for this session */ | 125 | __le64 seq; /* message seq# for this session */ |
126 | __le16 type; /* message type */ | 126 | __le16 type; /* message type */ |
127 | __le16 priority; /* priority. higher value == higher priority */ | 127 | __le16 priority; /* priority. higher value == higher priority */ |
128 | __le16 version; /* version of message encoding */ | ||
128 | 129 | ||
129 | __le32 front_len; /* bytes in main payload */ | 130 | __le32 front_len; /* bytes in main payload */ |
130 | __le32 middle_len;/* bytes in middle payload */ | 131 | __le32 middle_len;/* bytes in middle payload */ |