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: v20.0.0~1321^2~33 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=408ff2378cfda6726e9422ed826d39c39bbaa82b;p=ceph.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 --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 454c5f62c7e0..5affb24aa7e9 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++) {