From: Ilya Dryomov Date: Fri, 16 Aug 2024 12:12:38 +0000 (+0200) Subject: common/config: export CEPH_CONF_FILE_DEFAULT X-Git-Tag: v20.0.0~1226^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=57a8c535ccad35a9f6e11e8976bc32f390ad341c;p=ceph.git common/config: export CEPH_CONF_FILE_DEFAULT It used to be exported until commit 318c62f8ae16 ("common/config: cleanup remove some unused macros"). Having CEPH_CONF_FILE_DEFAULT avaialable is handy to prevent parse_config_files() from picking up CEPH_CONF environment variable. Signed-off-by: Ilya Dryomov --- diff --git a/src/common/config.cc b/src/common/config.cc index 604b3c35d5e3..e151e94bb90f 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -55,7 +55,7 @@ using ceph::decode; using ceph::encode; using ceph::Formatter; -static const char *CEPH_CONF_FILE_DEFAULT = "$data_dir/config,/etc/ceph/$cluster.conf,$home/.ceph/$cluster.conf,$cluster.conf" +const char *CEPH_CONF_FILE_DEFAULT = "$data_dir/config,/etc/ceph/$cluster.conf,$home/.ceph/$cluster.conf,$cluster.conf" #if defined(__FreeBSD__) ",/usr/local/etc/ceph/$cluster.conf" #elif defined(_WIN32) diff --git a/src/common/config.h b/src/common/config.h index ff7bc20f613d..3e7b51d987d2 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -39,6 +39,8 @@ enum { extern const char *ceph_conf_level_name(int level); +extern const char *CEPH_CONF_FILE_DEFAULT; + /** This class represents the current Ceph configuration. * * For Ceph daemons, this is the daemon configuration. Log levels, caching