Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 985c1673 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

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: default avatarIlya Dryomov <idryomov@gmail.com>
parent fcd00b68
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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));


/*
/*