mirror of
https://github.com/ceph/ceph
synced 2025-03-29 23:09:47 +00:00
librados,test: Fix incorrect use of __le16/32/64
Use ceph_le16/32/64 instead of __le16/32/64 (which are no-op outside of kernel code). Fixes (partially): https://tracker.ceph.com/issues/41605 Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
This commit is contained in:
parent
7d3cd10edf
commit
f798cc9d73
@ -226,8 +226,8 @@ TEST(LibRadosAio, RoundTrip3) {
|
||||
rados_read_op_read(op2, 0, sizeof(buf2), buf2, NULL, NULL);
|
||||
rados_read_op_set_flags(op2, LIBRADOS_OP_FLAG_FADVISE_NOCACHE |
|
||||
LIBRADOS_OP_FLAG_FADVISE_RANDOM);
|
||||
__le32 init_value = -1;
|
||||
__le32 checksum[2];
|
||||
ceph_le32 init_value = init_le32(-1);
|
||||
ceph_le32 checksum[2];
|
||||
rados_read_op_checksum(op2, LIBRADOS_CHECKSUM_TYPE_CRC32C,
|
||||
reinterpret_cast<char *>(&init_value),
|
||||
sizeof(init_value), 0, 0, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user