From: Adam Kupczyk Date: Tue, 30 Jan 2024 13:01:23 +0000 (+0000) Subject: os/bluestore: Fix _main_bdev_label_try_reserve X-Git-Tag: testing/wip-rishabh-testing-20240908.191426-squid-debug~34^2~33 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ac088096b7f625e7012c5317b2b18172920104fb;p=ceph-ci.git os/bluestore: Fix _main_bdev_label_try_reserve When location of label is acceptable add it as proper position for use. Signed-off-by: Adam Kupczyk (cherry picked from commit 408ff2378cfda6726e9422ed826d39c39bbaa82b) --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 0d6e2824395..3b73032aa9a 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6735,6 +6735,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++) {