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

Method factory

src/extblkdev/vdo/ExtBlkDevPluginVdo.cc:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34int ExtBlkDevPluginVdo::factory(const std::string& logdevname,
35 ceph::ExtBlkDevInterfaceRef& ext_blk_dev)
36{
37 auto vdo = new ExtBlkDevVdo(cct);
38 int r = vdo->init(logdevname);
39 if (r != 0) {
40 delete vdo;
41 return r;
42 }
43 ext_blk_dev.reset(vdo);
44 return 0;
45};
46
47const char *__ceph_plugin_version() { return CEPH_GIT_NICE_VER; }
48

Callers 1

detect_deviceFunction · 0.45

Calls 2

initMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected