From: tang.jin Date: Mon, 16 Jan 2017 14:28:23 +0000 (+0800) Subject: rbd: add error prompt when input command 'snap set limit' is incomplete X-Git-Tag: v11.2.1~150^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e3a230cb19d62bdcd18f3685d384d76e83b42ec5;p=ceph.git rbd: add error prompt when input command 'snap set limit' is incomplete Signed-off-by: Tang Jin (cherry picked from commit 8860028f508a9be5a08f512022cfb042021fd19f) --- diff --git a/src/tools/rbd/action/Snap.cc b/src/tools/rbd/action/Snap.cc index 892d051d8c3..168679393bf 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; }