]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: add crash_dir option
authorSage Weil <sage@redhat.com>
Fri, 15 Jun 2018 19:40:10 +0000 (14:40 -0500)
committerDan Mick <dan.mick@redhat.com>
Mon, 15 Oct 2018 23:45:35 +0000 (16:45 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 72139f0d23a9173448298c60fd3d3f1c48a97eeb)

src/common/legacy_config_opts.h
src/common/options.cc
src/vstart.sh

index 82e81d24a977cbd36e6b9641f11ef0c68cbdf74e..f375e210ce90f6fe38b98a432ef5bc6f0f6c22c7 100644 (file)
@@ -34,6 +34,7 @@ OPTION(chdir, OPT_STR)
 OPTION(restapi_log_level, OPT_STR)     // default set by Python code
 OPTION(restapi_base_url, OPT_STR)      // "
 OPTION(fatal_signal_handlers, OPT_BOOL)
+OPTION(crash_dir, OPT_STR)
 SAFE_OPTION(erasure_code_dir, OPT_STR) // default location for erasure-code plugins
 
 OPTION(log_file, OPT_STR) // default changed by common_preinit()
index 878f84b71f51a0ce541abc6ee2cf319c0058f569..9e567b6f438a2da229b4d851f41d6a7eafd7df45 100644 (file)
@@ -537,6 +537,10 @@ std::vector<Option> get_global_options() {
     .add_service({"mon", "mgr", "osd", "mds"})
     .add_tag("service"),
 
+    Option("crash_dir", Option::TYPE_STR, Option::LEVEL_ADVANCED)
+    .set_default("/var/lib/ceph/crash")
+    .set_description("Directory where crash reports are archived"),
+
     // restapi
     Option("restapi_log_level", Option::TYPE_STR, Option::LEVEL_ADVANCED)
     .set_description("default set by python code"),
index 97d17bbbdd436f5b7c3a19e6c9397b9d2e566b68..84e84e4c19ae063137158e0993c3efc149244ada 100755 (executable)
@@ -458,6 +458,7 @@ prepare_conf() {
         plugin dir = $CEPH_LIB
         filestore fd cache size = 32
         run dir = $CEPH_OUT_DIR
+       crash dir = $CEPH_OUT_DIR
         enable experimental unrecoverable data corrupting features = *
        osd_crush_chooseleaf_type = 0
 $extra_conf