[packages/ceph] - size_t is smaller than int64_t on non-64bit archs
baggins
baggins at pld-linux.org
Thu Oct 16 09:23:24 CEST 2025
commit b7ccabbf5466e371e06230358743a72a1e78cff5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Oct 16 11:22:49 2025 +0200
- size_t is smaller than int64_t on non-64bit archs
types.patch | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/types.patch b/types.patch
index 7c2a31a..b491940 100644
--- a/types.patch
+++ b/types.patch
@@ -112,3 +112,25 @@
ENCODE_FINISH(bl);
}
+--- ceph-19.2.3/src/os/bluestore/Allocator.h~ 2025-07-17 04:58:27.000000000 +0200
++++ ceph-19.2.3/src/os/bluestore/Allocator.h 2025-10-16 10:47:22.416660749 +0200
+@@ -210,8 +210,8 @@
+ return false;
+ }
+ bool ret = false;
+- ceph_assert(p2aligned(offset, myTraits.base));
+- ceph_assert(p2aligned(len, myTraits.base));
++ ceph_assert(p2aligned(offset, (uint64_t)myTraits.base));
++ ceph_assert(p2aligned(len, (uint64_t)myTraits.base));
+ auto idx = myTraits._get_bucket(len);
+ if (idx < buckets.size())
+ ret = buckets[idx].try_put(offset);
+@@ -224,7 +224,7 @@
+ }
+ bool ret = false;
+ ceph_assert(offset);
+- ceph_assert(p2aligned(len, myTraits.base));
++ ceph_assert(p2aligned(len, (uint64_t)myTraits.base));
+ size_t idx = len >> myTraits.base_bits;
+ if (idx < buckets.size()) {
+ ret = buckets[idx].try_get(*offset);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ceph.git/commitdiff/b7ccabbf5466e371e06230358743a72a1e78cff5
More information about the pld-cvs-commit
mailing list