Signed-off-by: Samuel Just <sam.just@inktank.com>
// Set to true for testing. Users should NOT set this.
OPTION(osd_debug_override_acting_compat, OPT_BOOL, false)
+OPTION(filestore_debug_disable_sharded_check, OPT_BOOL, false)
+
/// filestore wb throttle limits
OPTION(filestore_wbthrottle_enable, OPT_BOOL, true)
OPTION(filestore_wbthrottle_btrfs_bytes_start_flusher, OPT_U64, 41943040)
bool FileStore::get_allow_sharded_objects()
{
- return superblock.compat_features.incompat.contains(CEPH_FS_FEATURE_INCOMPAT_SHARDS);
+ return g_conf->filestore_debug_disable_sharded_check ||
+ superblock.compat_features.incompat.contains(CEPH_FS_FEATURE_INCOMPAT_SHARDS);
}
int FileStore::update_version_stamp()