Signed-off-by: Sage Weil <sage@redhat.com>
BlueStore::ExtentMap::ExtentMap(Onode *o)
: onode(o),
- inline_bl(g_conf->bluestore_extent_map_inline_shard_prealloc_size) {
+ inline_bl(
+ g_conf ? g_conf->bluestore_extent_map_inline_shard_prealloc_size : 4096) {
}
}
}
+BlueStore::extent_map_t::iterator BlueStore::ExtentMap::find(
+ uint64_t offset)
+{
+ Extent dummy(offset);
+ return extent_map.find(dummy);
+}
+
BlueStore::extent_map_t::iterator BlueStore::ExtentMap::find_lextent(
uint64_t offset)
{
void dirty_range(KeyValueDB::Transaction t,
uint32_t offset, uint32_t length);
+ extent_map_t::iterator find(uint64_t offset);
+
/// find a lextent that includes offset
extent_map_t::iterator find_lextent(uint64_t offset);