]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: include compat_version in version header
authorSage Weil <sage.weil@dreamhost.com>
Thu, 2 Feb 2012 22:29:59 +0000 (14:29 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 10 Feb 2012 06:09:05 +0000 (22:09 -0800)
header.version is the version we encoded.
header.compat_version is the oldest version of code that can decode it.

If the value is 0, we don't know anything about backward compatibility.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/include/msgr.h

index f53c35b37b16c6243d66a0bc172f73e4a494ef93..0ac33946c63579500ed96dab1cd0d0139a4c91bc 100644 (file)
@@ -156,7 +156,10 @@ struct ceph_msg_header {
                             receiver: mask against ~PAGE_MASK */
 
        struct ceph_entity_name src;
-       __le32 reserved;
+
+       /* oldest code we think can decode this.  unknown if zero. */
+       __le16 compat_version;
+       __le16 reserved;
        __le32 crc;       /* header crc32c */
 } __attribute__ ((packed));