From 8860028f508a9be5a08f512022cfb042021fd19f Mon Sep 17 00:00:00 2001 From: "tang.jin" Date: Mon, 16 Jan 2017 22:28:23 +0800 Subject: [PATCH] rbd: add error prompt when input command 'snap set limit' is incomplete Signed-off-by: Tang Jin --- src/tools/rbd/action/Snap.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/rbd/action/Snap.cc b/src/tools/rbd/action/Snap.cc index 892d051d8c34..168679393bf2 100644 --- a/src/tools/rbd/action/Snap.cc +++ b/src/tools/rbd/action/Snap.cc @@ -474,6 +474,7 @@ int execute_set_limit(const po::variables_map &vm) { if (vm.count(at::LIMIT)) { limit = vm[at::LIMIT].as(); } else { + std::cerr << "rbd: must specify --limit " << std::endl; return -ERANGE; } -- 2.47.3