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 <idryomov@gmail.com>
(cherry picked from commit
57a8c535ccad35a9f6e11e8976bc32f390ad341c)
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)
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