MCPcopy Create free account
hub / github.com/ceph/ceph / detect_ebd

Method detect_ebd

src/blk/kernel/KernelDevice.cc:474–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474int KernelDevice::detect_ebd(std::string& id)
475{
476 // check if any extended block device plugin recognizes this device
477 // detect_vdo has moved into the VDO plugin
478 if (!ebd_impl) {
479 int rc = extblkdev::detect_device(cct, devname, ebd_impl);
480 if (rc != 0) {
481 dout(20) << __func__ << " no plugin volume maps to " << devname << dendl;
482 }
483 }
484 if (ebd_impl) {
485 return ebd_impl->get_plugin_id(id);
486 }
487 return -ENOENT;
488}
489
490int KernelDevice::choose_fd(bool buffered, int write_hint) const
491{

Callers 2

_open_bdevMethod · 0.45
mkfsMethod · 0.45

Calls 2

detect_deviceFunction · 0.85
get_plugin_idMethod · 0.45

Tested by

no test coverage detected