From 3877c1e37f2fa4e1574b57f05132288f210835a7 Mon Sep 17 00:00:00 2001 From: "J. Eric Ivancich" Date: Thu, 20 Jan 2022 10:56:49 -0500 Subject: osd: add new CLS call to retrieve global configuration Currently there is no easy way to gain access to global configuration from CLS (objclass) code. This adds a new call to the CLS interface that returns a "const ConfigProxy&" from which configuration can be accessed. NOTE: Working code to do provide this functionality in crimson is not provided. Signed-off-by: J. Eric Ivancich --- src/objclass/objclass.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/objclass') diff --git a/src/objclass/objclass.h b/src/objclass/objclass.h index 0048665fd1c..d249c143508 100644 --- a/src/objclass/objclass.h +++ b/src/objclass/objclass.h @@ -142,6 +142,7 @@ extern uint64_t cls_get_features(cls_method_context_t hctx); extern uint64_t cls_get_client_features(cls_method_context_t hctx); extern ceph_release_t cls_get_required_osd_release(cls_method_context_t hctx); extern ceph_release_t cls_get_min_compatible_client(cls_method_context_t hctx); +extern const ConfigProxy& cls_get_config(cls_method_context_t hctx); /* helpers */ extern void cls_cxx_subop_version(cls_method_context_t hctx, std::string *s); -- cgit v1.2.3