From: Adam Kupczyk Date: Mon, 16 Feb 2026 13:50:26 +0000 (+0000) Subject: os/bluestore: Make extblkdev missing a warning X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F67289%2Fhead;p=ceph.git os/bluestore: Make extblkdev missing a warning When mounting BlueStore for OSD problem with extblkdev meta are fatal error. When mounting BlueStore in other cases extblkdev are just derr messages. Signed-off-by: Adam Kupczyk --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index c401ed0ae7e3..fff5abe4c53b 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -7187,14 +7187,20 @@ int BlueStore::_open_bdev(bool create) } string bdev_plugin_id; r = bdev->get_ebd_id(bdev_plugin_id); + bool is_osd = cct->get_module_type() & CEPH_ENTITY_TYPE_OSD; if (r != 0) { derr << __func__ << " plugin " << meta_plugin_id << " not loaded" << dendl; - goto fail_close; - } - if (meta_plugin_id != bdev_plugin_id) { - derr << __func__ << " plugin '" << meta_plugin_id << "' used on mkfs, " - << "but now uses plugin '" << bdev_plugin_id << "'" << dendl; - goto fail_close; + if (is_osd) { + goto fail_close; + } + } else { + if (meta_plugin_id != bdev_plugin_id) { + derr << __func__ << " plugin '" << meta_plugin_id << "' used on mkfs, " + << "but now uses plugin '" << bdev_plugin_id << "'" << dendl; + if (is_osd) { + goto fail_close; + } + } } } }