]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: update main bdev label when expanding device.
authorIgor Fedotov <igor.fedotov@croit.io>
Tue, 11 Mar 2025 09:04:41 +0000 (12:04 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Tue, 11 Mar 2025 09:04:41 +0000 (12:04 +0300)
This differs from Squid+ fixes as they use multiple bdev label.

Fixes: https://tracker.ceph.com/issues/70290
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/os/bluestore/BlueStore.cc

index 18913e6833f1b07aaf20818ca5d6b12a69da1ac2..08ee80123c5e250805259825eb026278d96d0047 100644 (file)
@@ -7698,8 +7698,9 @@ int BlueStore::expand_devices(ostream& out)
       << " : expanding " << " from 0x" << std::hex
       << size0 << " to 0x" << size << std::dec << std::endl;
     _write_out_fm_meta(size);
+    string p = get_device_path(bluefs_layout.shared_bdev);
     if (bdev->supported_bdev_label()) {
-      if (_set_bdev_label_size(path, size) >= 0) {
+      if (_set_bdev_label_size(p, size) >= 0) {
         out << bluefs_layout.shared_bdev
           << " : size label updated to " << size
           << std::endl;