MCPcopy Create free account
hub / github.com/ceph/ceph / ceph_release_from_features

Function ceph_release_from_features

src/common/ceph_strings.cc:176–194  ·  view source on GitHub ↗

return oldest/first release that supports these features */

Source from the content-addressed store, hash-verified

174
175/* return oldest/first release that supports these features */
176int ceph_release_from_features(uint64_t features)
177{
178 int r = 1;
179 while (true) {
180 uint64_t need = ceph_release_features(r);
181 if ((need & features) != need ||
182 r == CEPH_RELEASE_MAX) {
183 r--;
184 need = ceph_release_features(r);
185 /* we want the first release that looks like this */
186 while (r > 1 && ceph_release_features(r - 1) == need) {
187 r--;
188 }
189 break;
190 }
191 ++r;
192 }
193 return r;
194}
195
196const char *ceph_osd_watch_op_name(int o)
197{

Callers 5

TESTFunction · 0.85
dumpMethod · 0.85
prepare_command_implMethod · 0.85
dumpMethod · 0.85
Session.hFile · 0.85

Calls 1

ceph_release_featuresFunction · 0.85

Tested by 1

TESTFunction · 0.68