MCPcopy Create free account
hub / github.com/ceph/ceph / get_path

Function get_path

src/tools/rbd/Utils.cc:680–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680int get_path(const boost::program_options::variables_map &vm,
681 size_t *arg_index, std::string *path) {
682 if (vm.count(at::PATH)) {
683 *path = vm[at::PATH].as<std::string>();
684 } else {
685 *path = get_positional_argument(vm, *arg_index);
686 if (!path->empty()) {
687 ++(*arg_index);
688 }
689 }
690
691 if (path->empty()) {
692 std::cerr << "rbd: path was not specified" << std::endl;
693 return -EINVAL;
694 }
695 return 0;
696}
697
698int get_formatter(const po::variables_map &vm,
699 at::Format::Formatter *formatter) {

Callers 13

test_object_deletionMethod · 0.50
executeFunction · 0.50
execute_diffFunction · 0.50
executeFunction · 0.50
execute_diffFunction · 0.50
executeFunction · 0.50
execute_exportFunction · 0.50
execute_importFunction · 0.50
go_bad_dentryMethod · 0.50
go_badMethod · 0.50
dumpMethod · 0.50
dump_loadMethod · 0.50

Calls 3

get_positional_argumentFunction · 0.85
countMethod · 0.45
emptyMethod · 0.45

Tested by 1

test_object_deletionMethod · 0.40