Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / tools / rbd / rbd.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #include "tools/rbd/Shell.h"
5 #include "include/int_types.h"
6 #include "common/ceph_argparse.h"
7 #include "global/global_init.h"
8 #include <vector>
9
10 int main(int argc, const char **argv)
11 {
12   std::vector<const char*> args;
13   argv_to_vec(argc, argv, args);
14   env_to_vec(args);
15
16   auto cct = global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT,
17                          CODE_ENVIRONMENT_UTILITY, 0);
18
19   rbd::Shell shell;
20   return shell.execute(args);
21 }