initial code repo
[stor4nfv.git] / src / ceph / src / tools / rbd / rbd.cc
diff --git a/src/ceph/src/tools/rbd/rbd.cc b/src/ceph/src/tools/rbd/rbd.cc
new file mode 100644 (file)
index 0000000..6f24eec
--- /dev/null
@@ -0,0 +1,21 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
+#include "tools/rbd/Shell.h"
+#include "include/int_types.h"
+#include "common/ceph_argparse.h"
+#include "global/global_init.h"
+#include <vector>
+
+int main(int argc, const char **argv)
+{
+  std::vector<const char*> args;
+  argv_to_vec(argc, argv, args);
+  env_to_vec(args);
+
+  auto cct = global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT,
+                         CODE_ENVIRONMENT_UTILITY, 0);
+
+  rbd::Shell shell;
+  return shell.execute(args);
+}