提交 985c1673 编写于 作者: I Ilya Dryomov

libceph: fix ceph_eversion encoding

eversion_t is version+epoch in userspace and is encoded in that order.
ceph_eversion is defined as epoch+version in rados.h, yet we memcpy it
in __send_request().  Reoder ceph_eversion fields.
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 fcd00b68
...@@ -114,8 +114,8 @@ struct ceph_object_layout { ...@@ -114,8 +114,8 @@ struct ceph_object_layout {
* compound epoch+version, used by storage layer to serialize mutations * compound epoch+version, used by storage layer to serialize mutations
*/ */
struct ceph_eversion { struct ceph_eversion {
__le32 epoch;
__le64 version; __le64 version;
__le32 epoch;
} __attribute__ ((packed)); } __attribute__ ((packed));
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册