From: chunmei-liu Date: Fri, 24 Sep 2021 04:20:39 +0000 (-0700) Subject: crimson/store-nbd: fix store_nbd build error for futurized store mkfs X-Git-Tag: v17.1.0~819^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F43295%2Fhead;p=ceph.git crimson/store-nbd: fix store_nbd build error for futurized store mkfs Signed-off-by: chunmei-liu --- diff --git a/src/crimson/tools/store_nbd/fs_driver.cc b/src/crimson/tools/store_nbd/fs_driver.cc index f4c60f046fb5..436ceeb9dc51 100644 --- a/src/crimson/tools/store_nbd/fs_driver.cc +++ b/src/crimson/tools/store_nbd/fs_driver.cc @@ -185,7 +185,14 @@ seastar::future<> FSDriver::mkfs() ).then([this] { uuid_d uuid; uuid.generate_random(); - return fs->mkfs(uuid); + return fs->mkfs(uuid).handle_error( + crimson::stateful_ec::handle([] (const auto& ec) { + crimson::get_logger(ceph_subsys_test) + .error("error creating empty object store in {}: ({}) {}", + crimson::common::local_conf().get_val("osd_data"), + ec.value(), ec.message()); + std::exit(EXIT_FAILURE); + })); }).then([this] { return fs->stop(); }).then([this] {