return 0;
}
+BlockDevice* BlueFS::get_block_device(unsigned id) const
+{
+ if (id < bdev.size() && bdev[id])
+ return bdev[id];
+ return nullptr;
+}
+
void BlueFS::handle_discard(unsigned id, interval_set<uint64_t>& to_release)
{
dout(10) << __func__ << " bdev " << id << dendl;
bluefs_shared_alloc_context_t* _shared_alloc = nullptr);
bool bdev_support_label(unsigned id);
uint64_t get_block_device_size(unsigned bdev) const;
+ BlockDevice* get_block_device(unsigned bdev) const;
// handler for discard event
void handle_discard(unsigned dev, interval_set<uint64_t>& to_release);