CyanStore::~CyanStore() = default;
+template <const char* MsgV>
+struct singleton_ec : std::error_code {
+ singleton_ec()
+ : error_code(42, this_error_category{}) {
+ };
+private:
+ struct this_error_category : std::error_category {
+ const char* name() const noexcept final {
+ // XXX: we could concatenate with MsgV at compile-time but the burden
+ // isn't worth the benefit.
+ return "singleton_ec";
+ }
+ std::string message([[maybe_unused]] const int ev) const final {
+ assert(ev == 42);
+ return MsgV;
+ }
+ };
+};
+
seastar::future<> CyanStore::mount()
{
ceph::bufferlist bl;
});
}
-template <const char* MsgV>
-struct singleton_ec : std::error_code {
- singleton_ec()
- : error_code(42, this_error_category{}) {
- };
-private:
- struct this_error_category : std::error_category {
- const char* name() const noexcept final {
- // XXX: we could concatenate with MsgV at compile-time but the burden
- // isn't worth the benefit.
- return "singleton_ec";
- }
- std::string message([[maybe_unused]] const int ev) const final {
- assert(ev == 42);
- return MsgV;
- }
- };
-};
-
CyanStore::mkfs_ertr::future<> CyanStore::mkfs(uuid_d new_osd_fsid)
{
static const char read_meta_errmsg[]{"read_meta"};