]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
extblkdev/fcm: Refuse to operate on multimedia lvm block devices
authorAdam Kupczyk <akupczyk@ibm.com>
Thu, 25 Sep 2025 07:03:12 +0000 (03:03 -0400)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 17 Dec 2025 07:06:45 +0000 (07:06 +0000)
BlueStore is selecting were data is put to the device.
Merging 2 FCM devices together means that BlueStore will see free space
on one of the devices, but not know the other is full and asking to put
data there. It will cause -ENOSPC while free space is reported.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/extblkdev/fcm/ExtBlkDevPluginFcm.cc

index 3600b4388bf00a92d9a3702c49be71886068cde0..b4e80a59c684ed50c0e0efd0c904414abc93444e 100644 (file)
@@ -296,6 +296,9 @@ public:
     // determine device name for underlying hardware
     std::set<std::string> raw_devices;
     get_raw_devices(logdevname, &raw_devices);
+    if (raw_devices.size() > 1) {
+      ceph_abort("Device " + logdevname_a + " consist of "+ raw_devices.size() + " devices: " + raw_devices);
+    }
     for (auto& d : raw_devices) {
       std::string devpath = "/sys/block/" + d + "/device/";
       uint32_t vendor;