From: Sage Weil Date: Thu, 31 Jan 2019 23:33:57 +0000 (-0600) Subject: os/bluestore: add bluestore_ignore_data_csum option X-Git-Tag: v12.2.13~127^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=58cb3ecc36afd83048e595976bd733ac2b863a26;p=ceph.git os/bluestore: add bluestore_ignore_data_csum option This option just suppresses the EIO errors. We still get the messages in the logs, though. This can be useful when you are in dire straights and prefer some data to no data. Signed-off-by: Sage Weil (cherry picked from commit b7b78809f1e9790b08a2f5a49de96be1131e5010) - remove RUNTIME flag in options.cc (not in luminous) - trivial conflict due to adjacnet ceph_clock_now() --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 38b36a60cc8..f523c4f62db 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1026,6 +1026,7 @@ OPTION(bluestore_block_wal_path, OPT_STR) OPTION(bluestore_block_wal_size, OPT_U64) // rocksdb wal OPTION(bluestore_block_wal_create, OPT_BOOL) OPTION(bluestore_block_preallocate_file, OPT_BOOL) //whether preallocate space if block/db_path/wal_path is file rather that block device. +OPTION(bluestore_ignore_data_csum, OPT_BOOL) OPTION(bluestore_csum_type, OPT_STR) // none|xxhash32|xxhash64|crc32c|crc32c_16|crc32c_8 OPTION(bluestore_csum_min_block, OPT_U32) OPTION(bluestore_csum_max_block, OPT_U32) diff --git a/src/common/options.cc b/src/common/options.cc index 1ed027c9beb..d34387e916b 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3371,6 +3371,10 @@ std::vector