From 0d2870e7403228d6b00fa64a27ef0afdb786d45e Mon Sep 17 00:00:00 2001 From: Aishwarya Mathuria Date: Thu, 6 Nov 2025 12:12:01 +0000 Subject: [PATCH] crimson/seastore: adapt _mkfs() to new coroutine::experimental::generator MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Update use of experimental_list_directory() to match Seastar’s new generator. For more details see: https://github.com/scylladb/seastar/commit/81f2dc9dd976b0019ff84274b8b7fb7507c3e4e7 Signed-off-by: Aishwarya Mathuria --- src/crimson/os/seastore/seastore.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/crimson/os/seastore/seastore.cc b/src/crimson/os/seastore/seastore.cc index 89b0843438d9e..ab81a692f7116 100644 --- a/src/crimson/os/seastore/seastore.cc +++ b/src/crimson/os/seastore/seastore.cc @@ -445,10 +445,11 @@ Device::access_ertr::future<> SeaStore::_mkfs(uuid_d new_osd_fsid) // hmm? auto lister = rdir.experimental_list_directory(); while (auto de = co_await lister()) { - DEBUG("found file: {}", de->name); - if (de->name.find("block.") == 0 && de->name.length() > 6 ) { + auto& entry = de->get(); + DEBUG("found file: {}", entry.name); + if (entry.name.find("block.") == 0 && entry.name.length() > 6 ) { // 6 for "block." - std::string entry_name = de->name; + std::string entry_name = entry.name; auto dtype_end = entry_name.find_first_of('.', 6); device_type_t dtype = string_to_device_type( -- 2.39.5