]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/seastore: adapt _mkfs() to new coroutine::experimental::generator wip-amat-update-seastar-nov25
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 6 Nov 2025 12:12:01 +0000 (12:12 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Tue, 11 Nov 2025 17:31:54 +0000 (17:31 +0000)
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 <amathuri@redhat.com>
src/crimson/os/seastore/seastore.cc

index 89b0843438d9e8f7be5a236ca520bd10ba5de4fe..ab81a692f711613ee60439dc368446000180ef94 100644 (file)
@@ -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(