This makes debugging a bit easier because we never use the same
extent of the disk twice, leaving useful evidence behind.
Signed-off-by: Sage Weil <sage@redhat.com>
OPTION(bluestore_open_by_handle, OPT_BOOL, true)
OPTION(bluestore_o_direct, OPT_BOOL, true)
OPTION(bluestore_debug_misc, OPT_BOOL, false)
+OPTION(bluestore_debug_no_reuse_blocks, OPT_BOOL, false)
OPTION(kstore_max_ops, OPT_U64, 512)
OPTION(kstore_max_bytes, OPT_U64, 64*1024*1024)
++p) {
dout(20) << __func__ << " release " << p.get_start()
<< "~" << p.get_len() << dendl;
- alloc->release(p.get_start(), p.get_len());
+ if (!g_conf->bluestore_debug_no_reuse_blocks)
+ alloc->release(p.get_start(), p.get_len());
}
vector<bluestore_extent_t> bluefs_gift_extents;