MCPcopy Create free account
hub / github.com/ceph/ceph / factory

Method factory

src/erasure-code/clay/ErasureCodePluginClay.cc:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#define dout_prefix _prefix(_dout)
25
26int 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
38const char *__erasure_code_version() { return CEPH_GIT_NICE_VER; }
39

Callers 2

initMethod · 0.45
ec_init_pluginMethod · 0.45

Calls 3

initMethod · 0.45
resetMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected