]>
git.proxmox.com Git - ceph.git/blob - ceph/src/tools/cephfs/cephfs-table-tool.cc
2 #include "include/types.h"
3 #include "common/config.h"
4 #include "common/ceph_argparse.h"
5 #include "common/errno.h"
6 #include "global/global_init.h"
11 int main(int argc
, const char **argv
)
13 vector
<const char*> args
;
14 argv_to_vec(argc
, argv
, args
);
17 cerr
<< argv
[0] << ": -h or --help for usage" << std::endl
;
20 if (ceph_argparse_need_usage(args
)) {
25 auto cct
= global_init(NULL
, args
, CEPH_ENTITY_TYPE_CLIENT
,
26 CODE_ENVIRONMENT_UTILITY
, 0);
27 common_init_finish(g_ceph_context
);
31 // Connect to mon cluster, download MDS map etc
34 std::cerr
<< "Error in initialization: " << cpp_strerror(rc
) << std::endl
;
38 // Finally, execute the user's commands
41 std::cerr
<< "Error (" << cpp_strerror(rc
) << ")" << std::endl
;