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: v14.1.0~221^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26233%2Fhead;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 --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index a71d2dac51a3..3d456cc7741e 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -970,6 +970,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_retry_disk_reads, OPT_U64) OPTION(bluestore_min_alloc_size, OPT_U32) diff --git a/src/common/options.cc b/src/common/options.cc index 245cac9af8f1..d3d437fda6a8 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4202,6 +4202,11 @@ std::vector