From 408ff2378cfda6726e9422ed826d39c39bbaa82b Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Tue, 30 Jan 2024 13:01:23 +0000 Subject: [PATCH] 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 --- src/os/bluestore/BlueStore.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 454c5f62c7e..5affb24aa7e 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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++) { -- 2.47.3