]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: print message after done with mkfs
authorKefu Chai <kchai@redhat.com>
Fri, 15 Mar 2019 04:37:18 +0000 (12:37 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Mar 2019 03:49:54 +0000 (11:49 +0800)
so user is aware of what's accomplished.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/osd.cc

index 891f720208e276d0b1f9c0e4a0d3f0bcbee7b7e9..be101c3b2c5a4153bf0050b75002ce7cc134be5e 100644 (file)
@@ -93,9 +93,11 @@ seastar::future<> OSD::mkfs(uuid_d cluster_fsid)
     meta_coll->create(t);
     meta_coll->store_superblock(t, superblock);
     return store->do_transaction(meta_coll->collection(), std::move(t));
-  }).then([cluster_fsid, this] {
+  }).then([cluster_fsid, data_path, this] {
     store->write_meta("ceph_fsid", cluster_fsid.to_string());
     store->write_meta("whoami", std::to_string(whoami));
+    fmt::print("created object store {} for osd.{} fsid {}\n",
+               data_path, whoami, cluster_fsid);
     return seastar::now();
   });
 }