| 472 | } |
| 473 | |
| 474 | int 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 | |
| 490 | int KernelDevice::choose_fd(bool buffered, int write_hint) const |
| 491 | { |
no test coverage detected