Skip to content

Commit

Permalink
ceph: add version field to message header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sage Weil committed Oct 13, 2009
1 parent 5720330 commit 535bbb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/ceph/msgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 535bbb5

Please sign in to comment.