From: Sage Weil Date: Tue, 30 May 2017 15:54:28 +0000 (-0400) Subject: os/bluestore: bluestore_debug_fsck_abort X-Git-Tag: v12.1.0~87^2~1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=496d63a1632b181a483d3753f37bd0043e726c97;p=ceph.git os/bluestore: bluestore_debug_fsck_abort Abort fsck early to get a massif result. Signed-off-by: Sage Weil --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index a0dbf011f55..476caad93d7 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -1160,6 +1160,7 @@ OPTION(bluestore_debug_prefragment_max, OPT_INT, 1048576) OPTION(bluestore_debug_inject_read_err, OPT_BOOL, false) OPTION(bluestore_debug_randomize_serial_transaction, OPT_INT, 0) OPTION(bluestore_debug_omit_block_device_write, OPT_BOOL, false) +OPTION(bluestore_debug_fsck_abort, OPT_BOOL, false) OPTION(bluestore_shard_finishers, OPT_BOOL, false) OPTION(kstore_max_ops, OPT_U64, 512) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 7eef3c77193..1f27bf77c33 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -5262,6 +5262,9 @@ int BlueStore::fsck(bool deep) spg_t pgid; mempool::bluestore_fsck::list expecting_shards; for (it->lower_bound(string()); it->valid(); it->next()) { + if (g_conf->bluestore_debug_fsck_abort) { + goto out_scan; + } dout(30) << " key " << pretty_binary_string(it->key()) << dendl; if (is_extent_shard_key(it->key())) { while (!expecting_shards.empty() &&