From: Sage Weil Date: Tue, 13 Oct 2009 19:55:26 +0000 (-0700) Subject: ceph: add version field to message header X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~26570^2~168 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=535bbb530764b1b2b3b732837f0e61e1baae7109;p=mirror_ubuntu-focal-kernel.git 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 --- 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 @@ * 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 */