Apply to the three plugin directory options.
Signed-off-by: Sage Weil <sage@redhat.com>
env_to_vec(env_args, args_var);
parse_argv(env_args, CONF_ENV);
}
+ if (const char *dir = getenv("CEPH_LIB")) {
+ Mutex::Locker l(lock);
+ for (auto name : { "erasure_code_dir", "plugin_dir", "osd_class_dir" }) {
+ std::string err;
+ const Option *o = find_option(name);
+ assert(o);
+ _set_val(dir, *o, CONF_ENV, &err);
+ }
+ }
}
void md_config_t::show_config(std::ostream& out)