we will need it for preparing crimson-osd without help of ceph-osd.
Signed-off-by: Kefu Chai <kchai@redhat.com>
OSD::~OSD() = default;
+seastar::future<> OSD::mkfs(uuid_d cluster_fsid, int whoami)
+{
+ CyanStore store{local_conf().get_val<std::string>("osd_data")};
+ uuid_d osd_fsid;
+ osd_fsid.generate_random();
+ store.write_meta("fsid", osd_fsid.to_string());
+ store.write_meta("ceph_fsid", cluster_fsid.to_string());
+ store.write_meta("whoami", std::to_string(whoami));
+ return seastar::now();
+}
+
seastar::future<> OSD::start()
{
logger().info("start");
OSD(int id, uint32_t nonce);
~OSD();
+ static seastar::future<> mkfs(uuid_d fsid, int whoami);
+
seastar::future<> start();
seastar::future<> stop();