X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftools%2Fcephfs%2Fcephfs-journal-tool.cc;fp=src%2Fceph%2Fsrc%2Ftools%2Fcephfs%2Fcephfs-journal-tool.cc;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=2764feb0fcb3194090bc0107d83e8eef9fbcb9ec;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/tools/cephfs/cephfs-journal-tool.cc b/src/ceph/src/tools/cephfs/cephfs-journal-tool.cc deleted file mode 100644 index 2764feb..0000000 --- a/src/ceph/src/tools/cephfs/cephfs-journal-tool.cc +++ /dev/null @@ -1,59 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab -/* - * Ceph - scalable distributed file system - * - * Copyright (C) 2014 John Spray - * - * This is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software - * Foundation. See file COPYING. - */ - - -#include "include/types.h" -#include "common/config.h" -#include "common/ceph_argparse.h" -#include "common/errno.h" -#include "global/global_init.h" - -#include "JournalTool.h" - - -int main(int argc, const char **argv) -{ - vector 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); - common_init_finish(g_ceph_context); - - JournalTool jt; - - // Handle --help before calling init() so we don't depend on network. - if (args.empty() || (args.size() == 1 && (std::string(args[0]) == "--help" || std::string(args[0]) == "-h"))) { - jt.usage(); - return 0; - } - - // Connect to mon cluster, download MDS map etc - int rc = jt.init(); - if (rc != 0) { - std::cerr << "Error in initialization: " << cpp_strerror(rc) << std::endl; - return rc; - } - - // Finally, execute the user's commands - rc = jt.main(args); - if (rc != 0) { - std::cerr << "Error (" << cpp_strerror(rc) << ")" << std::endl; - } - - jt.shutdown(); - - return rc; -} -