]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Fix _main_bdev_label_try_reserve
authorAdam Kupczyk <akupczyk@ibm.com>
Tue, 30 Jan 2024 13:01:23 +0000 (13:01 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Mon, 22 Jul 2024 12:28:50 +0000 (12:28 +0000)
When location of label is acceptable add it as proper position for use.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/os/bluestore/BlueStore.cc

index 454c5f62c7e0d9cd8b12e67c1e102e5c95ea5dc3..5affb24aa7e95877a01aca9c45dbc1975e1f9737 100644 (file)
@@ -6752,6 +6752,7 @@ void BlueStore::_main_bdev_label_try_reserve()
   alloc->foreach(look_for_bdev);
   for (auto& location : accepted_positions) {
     alloc->init_rm_free(location, lsize);
+    bdev_label_valid_locations.push_back(location);
   }
 
   for (size_t i = 0; i < candidate_positions.size(); i++) {