]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd: add error prompt when input command 'snap set limit' is incomplete
authortang.jin <tang.jin@istuary.com>
Mon, 16 Jan 2017 14:28:23 +0000 (22:28 +0800)
committertang.jin <tang.jin@istuary.com>
Mon, 16 Jan 2017 14:28:23 +0000 (22:28 +0800)
Signed-off-by: Tang Jin <tang.jin@istuary.com>
src/tools/rbd/action/Snap.cc

index 892d051d8c343474b5d6b0b2798692106e72d2d3..168679393bf22ec32d4c7ba0d70181622229c6e7 100644 (file)
@@ -474,6 +474,7 @@ int execute_set_limit(const po::variables_map &vm) {
   if (vm.count(at::LIMIT)) {
     limit = vm[at::LIMIT].as<uint64_t>();
   } else {
+    std::cerr << "rbd: must specify --limit <num>" << std::endl;
     return -ERANGE;
   }