| 24 | #define dout_prefix _prefix(_dout) |
| 25 | |
| 26 | int ErasureCodePluginClay::factory(const std::string &directory, |
| 27 | ceph::ErasureCodeProfile &profile, |
| 28 | ceph::ErasureCodeInterfaceRef *erasure_code, |
| 29 | std::ostream *ss) { |
| 30 | auto interface = std::make_unique<ErasureCodeClay>(directory); |
| 31 | if (int r = interface->init(profile, ss); r) { |
| 32 | return r; |
| 33 | } |
| 34 | erasure_code->reset(interface.release()); |
| 35 | return 0; |
| 36 | }; |
| 37 | |
| 38 | const char *__erasure_code_version() { return CEPH_GIT_NICE_VER; } |
| 39 |
no test coverage detected