]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: adds assert for device mounted before expand
authorJoshua Blanch <joshua.blanch@clyso.com>
Tue, 3 Mar 2026 19:37:06 +0000 (19:37 +0000)
committerJoshua Blanch <joshua.blanch@clyso.com>
Thu, 23 Apr 2026 15:05:55 +0000 (15:05 +0000)
Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
src/os/bluestore/BlueStore.cc

index 90c78c71c4fb185f5d554cac61a206b05eb85463..b31462d8975044ac21fa81efe511a44180539110 100644 (file)
@@ -9267,6 +9267,7 @@ int BlueStore::expand_devices(ostream& out)
                 << std::dec << "(" << byte_u_t(size) << ")"
                 << std::endl;
           }
+          ceph_assert(mounted);
           bluefs->expand_device(devid, size, old_size);
         }
       }