From f38ef0e652c9c00f23091ddb80c623d258104bef Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Mon, 16 Feb 2026 13:50:26 +0000 Subject: [PATCH] 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 --- src/os/bluestore/BlueStore.cc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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; + } + } } } } -- 2.47.3