mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +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
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue