Signed-off-by: Ryne Li <lizhenqiangsnake@gmail.com>
__le32 payload_len;
} __attribute__ ((packed));
+/*
+ * Check the compatibility of struct ceph_osd_op
+ * (2+4+(2*8+8+4)+4) = (sizeof(ceph_osd_op::op) +
+ * sizeof(ceph_osd_op::flags) +
+ * sizeof(ceph_osd_op::extent) +
+ * sizeof(ceph_osd_op::payload_len))
+ */
+#ifdef __cplusplus
+static_assert(sizeof(ceph_osd_op) == (2+4+(2*8+8+4)+4),
+ "sizeof(ceph_osd_op) breaks the compatibility");
+#endif
+
struct ceph_osd_reply_head {
__le32 client_inc; /* client incarnation */
__le32 flags;