From: Adam Kupczyk Date: Sat, 30 Jan 2021 11:57:05 +0000 (+0100) Subject: os/bluestore: Add option to check BlueFS reads X-Git-Tag: v16.2.0~139^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39753%2Fhead;p=ceph.git os/bluestore: Add option to check BlueFS reads Add option "bluefs_check_for_zeros" to check if there are any zero-filled page. If so, reread data. It is known that sometimes BlueStore gets such pages. See "bluestore_retry_disk_reads". Signed-off-by: Adam Kupczyk (cherry picked from commit 7e495c57fe0ec8d8bdb1dbff90b177e656a22cbe) --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index d30c5fda8a9..5a0aa9545e2 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -909,6 +909,7 @@ OPTION(bluefs_allocator, OPT_STR) // stupid | bitmap OPTION(bluefs_log_replay_check_allocations, OPT_BOOL) OPTION(bluefs_replay_recovery, OPT_BOOL) OPTION(bluefs_replay_recovery_disable_compact, OPT_BOOL) +OPTION(bluefs_check_for_zeros, OPT_BOOL) OPTION(bluestore_bluefs, OPT_BOOL) OPTION(bluestore_bluefs_env_mirror, OPT_BOOL) // mirror to normal Env for debug diff --git a/src/common/options.cc b/src/common/options.cc index 774f263a1e4..f9c7f5870b1 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4207,6 +4207,14 @@ std::vector