]> git.pld-linux.org Git - packages/ceph.git/blame - ceph-types.patch
- up to 14.2.22
[packages/ceph.git] / ceph-types.patch
CommitLineData
1b11728e
JB
1--- ceph-12.2.13/src/osd/PrimaryLogPG.cc.orig 2020-01-30 21:52:36.000000000 +0100
2+++ ceph-12.2.13/src/osd/PrimaryLogPG.cc 2020-05-28 12:18:59.914600378 +0200
3@@ -1582,7 +1582,7 @@
4 if (limit != eversion_t() &&
5 limit != pg_trim_to &&
6 pg_log.get_log().approx_size() > target) {
7- size_t num_to_trim = std::min(pg_log.get_log().approx_size() - target,
f7926bf0 8+ size_t num_to_trim = std::min<uint64_t>(pg_log.get_log().approx_size() - target,
1b11728e
JB
9 cct->_conf->osd_pg_log_trim_max);
10 if (num_to_trim < cct->_conf->osd_pg_log_trim_min &&
11 cct->_conf->osd_pg_log_trim_max >= cct->_conf->osd_pg_log_trim_min) {
a92d2e05
JB
12--- ceph-12.2.13/src/os/filestore/FileStore.cc.orig 2020-01-30 21:52:36.000000000 +0100
13+++ ceph-12.2.13/src/os/filestore/FileStore.cc 2020-06-03 21:27:26.387210803 +0200
a92d2e05
JB
14@@ -922,7 +922,7 @@
15 }
16
17 #if defined(__linux__)
18- if (basefs.f_type == BTRFS_SUPER_MAGIC &&
19+ if (static_cast<uint32_t>(basefs.f_type) == BTRFS_SUPER_MAGIC &&
20 !g_ceph_context->check_experimental_feature_enabled("btrfs")) {
21 derr << __FUNC__ << ": deprecated btrfs support is not enabled" << dendl;
22 goto close_fsid_fd;
23@@ -1208,7 +1208,7 @@
24 blk_size = st.f_bsize;
25
26 #if defined(__linux__)
27- if (st.f_type == BTRFS_SUPER_MAGIC &&
28+ if (static_cast<uint32_t>(st.f_type) == BTRFS_SUPER_MAGIC &&
29 !g_ceph_context->check_experimental_feature_enabled("btrfs")) {
30 derr <<__FUNC__ << ": deprecated btrfs support is not enabled" << dendl;
31 return -EPERM;
f7926bf0
JB
32--- ceph-13.2.10/src/rgw/rgw_client_io_filters.h.orig 2020-04-23 18:32:31.000000000 +0200
33+++ ceph-13.2.10/src/rgw/rgw_client_io_filters.h 2021-09-22 17:02:54.573378159 +0200
34@@ -291,7 +291,7 @@ public:
35 // extensions/trailing headers.
36 char chunk_size[32];
37 const auto chunk_size_len = snprintf(chunk_size, sizeof(chunk_size),
38- "%" PRIx64 "\r\n", len);
39+ "%zx\r\n", len);
40 size_t sent = 0;
a92d2e05 41
f7926bf0 42 sent += DecoratedRestfulClient<T>::send_body(chunk_size, chunk_size_len);
d8321c07
JB
43--- ceph-14.2.22/src/include/buffer.h.orig 2021-06-30 00:09:10.000000000 +0200
44+++ ceph-14.2.22/src/include/buffer.h 2022-06-10 22:04:13.923155571 +0200
45@@ -737,7 +737,9 @@ inline namespace v14_2_0 {
f7926bf0 46
d8321c07
JB
47 void advance(int o) = delete;
48 void advance(unsigned o);
49+#ifdef __LP64__
50 void advance(size_t o) { advance(static_cast<unsigned>(o)); }
51+#endif
52 void seek(unsigned o);
53 char operator*() const;
54 iterator_impl& operator++();
55--- ceph-14.2.22/src/common/config_values.h.orig 2021-06-30 00:09:10.000000000 +0200
56+++ ceph-14.2.22/src/common/config_values.h 2022-06-11 12:41:03.898142864 +0200
57@@ -49,7 +49,7 @@ public:
58 #define OPTION_OPT_U32(name) uint64_t name;
59 #define OPTION_OPT_U64(name) uint64_t name;
60 #define OPTION_OPT_UUID(name) uuid_d name;
61-#define OPTION_OPT_SIZE(name) size_t name;
62+#define OPTION_OPT_SIZE(name) uint64_t name;
63 #define OPTION(name, ty) \
64 public: \
65 OPTION_##ty(name)
66--- ceph-14.2.22/src/compressor/snappy/SnappyCompressor.h.orig 2021-06-30 00:09:10.000000000 +0200
67+++ ceph-14.2.22/src/compressor/snappy/SnappyCompressor.h 2022-06-11 13:56:24.966983465 +0200
68@@ -96,7 +96,7 @@ class SnappyCompressor : public Compress
69 if (qat_enabled)
70 return qat_accel.decompress(p, compressed_len, dst);
71 #endif
72- snappy::uint32 res_len = 0;
73+ uint32_t res_len = 0;
74 BufferlistSource source_1(p, compressed_len);
75 if (!snappy::GetUncompressedLength(&source_1, &res_len)) {
76 return -1;
77--- ceph-14.2.22/src/os/bluestore/BlueFS.cc.orig 2021-06-30 00:09:10.000000000 +0200
78+++ ceph-14.2.22/src/os/bluestore/BlueFS.cc 2022-06-11 16:48:43.774306676 +0200
79@@ -1737,7 +1737,7 @@ int64_t BlueFS::_read_random(
80 }
81 } else {
82 auto left = buf->get_buf_remaining(off);
83- int64_t r = std::min(len, left);
84+ int64_t r = std::min<int64_t>(len, left);
85 logger->inc(l_bluefs_read_random_buffer_count, 1);
86 logger->inc(l_bluefs_read_random_buffer_bytes, r);
87 dout(20) << __func__ << " left 0x" << std::hex << left
88--- ceph-14.2.22/src/os/bluestore/BlueStore.cc.orig 2021-06-30 00:09:10.000000000 +0200
89+++ ceph-14.2.22/src/os/bluestore/BlueStore.cc 2022-06-11 17:36:58.645290480 +0200
90@@ -5948,7 +5948,7 @@ size_t BlueStore::available_freespace(ui
91 if (dist_to_alignment >= len)
92 return;
93 len -= dist_to_alignment;
94- total += p2align(len, alloc_size);
95+ total += p2align<uint64_t>(len, alloc_size);
96 };
97 alloc->dump(iterated_allocation);
98 return total;
99--- ceph-14.2.22/src/mds/PurgeQueue.cc.orig 2021-06-30 00:09:10.000000000 +0200
100+++ ceph-14.2.22/src/mds/PurgeQueue.cc 2022-06-11 19:37:11.086217333 +0200
101@@ -499,7 +499,7 @@ void PurgeQueue::_execute_item(
f7926bf0 102
d8321c07
JB
103 in_flight[expire_to] = item;
104 logger->set(l_pq_executing, in_flight.size());
105- files_high_water = std::max(files_high_water, in_flight.size());
106+ files_high_water = std::max<uint64_t>(files_high_water, in_flight.size());
107 logger->set(l_pq_executing_high_water, files_high_water);
108 auto ops = _calculate_ops(item);
109 ops_in_flight += ops;
110@@ -577,7 +577,7 @@ void PurgeQueue::_execute_item(
111 logger->set(l_pq_executing_ops_high_water, ops_high_water);
112 in_flight.erase(expire_to);
113 logger->set(l_pq_executing, in_flight.size());
114- files_high_water = std::max(files_high_water, in_flight.size());
115+ files_high_water = std::max<uint64_t>(files_high_water, in_flight.size());
116 logger->set(l_pq_executing_high_water, files_high_water);
117 return;
f7926bf0 118 }
d8321c07 119@@ -654,7 +654,7 @@ void PurgeQueue::_execute_item_complete(
f7926bf0 120
d8321c07
JB
121 in_flight.erase(iter);
122 logger->set(l_pq_executing, in_flight.size());
123- files_high_water = std::max(files_high_water, in_flight.size());
124+ files_high_water = std::max<uint64_t>(files_high_water, in_flight.size());
125 logger->set(l_pq_executing_high_water, files_high_water);
126 dout(10) << "in_flight.size() now " << in_flight.size() << dendl;
127
128--- ceph-14.2.22/src/client/fuse_ll.cc.orig 2021-06-30 00:09:10.000000000 +0200
129+++ ceph-14.2.22/src/client/fuse_ll.cc 2022-06-11 20:41:03.452122291 +0200
130@@ -192,7 +192,7 @@ static void fuse_ll_lookup(fuse_req_t re
131 }
f7926bf0 132
d8321c07
JB
133 static void fuse_ll_forget(fuse_req_t req, fuse_ino_t ino,
134- long unsigned nlookup)
135+ uint64_t nlookup)
136 {
137 CephFuse::Handle *cfuse = fuse_ll_req_prepare(req);
138 cfuse->client->ll_forget(cfuse->iget(ino), nlookup+1);
This page took 0.138564 seconds and 4 git commands to generate.