]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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, | |
31f18b77 | 17 | CODE_ENVIRONMENT_UTILITY, 0); |
7c673cae FG |
18 | |
19 | rbd::Shell shell; | |
20 | return shell.execute(args); | |
21 | } |