diff --git a/src/librmb/rados-ceph-config.h b/src/librmb/rados-ceph-config.h index 9c9d43b3..b76bcb06 100644 --- a/src/librmb/rados-ceph-config.h +++ b/src/librmb/rados-ceph-config.h @@ -35,6 +35,8 @@ class RadosCephConfig { void set_ns_suffix(std::string &ns_suffix_) { config.set_ns_suffix(ns_suffix_); } std::string get_ns_suffix() { return config.get_ns_suffix(); } const std::string &get_public_namespace() const { return config.get_public_namespace(); } + void set_public_namespace(std::string &public_namespace_) { config.set_public_namespace(public_namespace_); } + void set_cfg_object_name(std::string cfg_object_name_) { config.set_cfg_object_name(cfg_object_name_); } std::string get_cfg_object_name() { return config.get_cfg_object_name(); } RadosCephJsonConfig *get_config() { return &config; } diff --git a/src/librmb/tools/rmb/rmb.cpp b/src/librmb/tools/rmb/rmb.cpp index e882d993..cef5d684 100644 --- a/src/librmb/tools/rmb/rmb.cpp +++ b/src/librmb/tools/rmb/rmb.cpp @@ -497,6 +497,8 @@ int main(int argc, const char **argv) { ceph_cfg.set_ns_cfg(key_val); } else if (ceph_cfg.get_config()->get_key_ns_suffix().compare(key) == 0) { ceph_cfg.set_ns_suffix(key_val); + } else if (ceph_cfg.get_config()->get_key_public_namespace().compare(key) == 0) { + ceph_cfg.set_public_namespace(key_val); } else { std::cout << "ERROR: not a valid key: " << key << std::endl; std::cout << ceph_cfg.get_config()->to_string() << std::endl;