Signed-off-by: Igor Fedotov <ifedotov@suse.com>
OPTION(bluestore_debug_random_read_err, OPT_DOUBLE)
OPTION(bluestore_debug_inject_bug21040, OPT_BOOL)
OPTION(bluestore_debug_inject_csum_err_probability, OPT_FLOAT)
+OPTION(bluestore_debug_no_per_pool_stats, OPT_BOOL)
OPTION(kstore_max_ops, OPT_U64)
OPTION(kstore_max_bytes, OPT_U64)
.set_default(0.0)
.set_description("inject crc verification errors into bluestore device reads"),
+ Option("bluestore_debug_no_per_pool_stats", Option::TYPE_BOOL, Option::LEVEL_DEV)
+ .set_default(false)
+ .set_description(""),
+
// -----------------------------------------
// kstore
int BlueStore::pool_statfs(uint64_t pool_id, struct store_statfs_t *buf)
{
dout(20) << __func__ << " pool " << pool_id<< dendl;
- if (!per_pool_stat_collection) {
+ if (!per_pool_stat_collection ||
+ cct->_conf->bluestore_debug_no_per_pool_stats) {
dout(20) << __func__ << " not supported in a legacy mode " << dendl;
return -ENOTSUP;
}