mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-08 10:30:50 +00:00
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: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
fcd00b68bb
commit
985c167388
@ -114,8 +114,8 @@ struct ceph_object_layout {
|
||||
* compound epoch+version, used by storage layer to serialize mutations
|
||||
*/
|
||||
struct ceph_eversion {
|
||||
__le32 epoch;
|
||||
__le64 version;
|
||||
__le32 epoch;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user