From: Jianpeng Ma Date: Fri, 16 Dec 2016 09:56:04 +0000 (+0800) Subject: rbd: make option --stripe-unit w/ B/K/M work. X-Git-Tag: v11.1.1~44^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c5ce82e62de91dce4fa58269c52a7e96453e9984;p=ceph.git rbd: make option --stripe-unit w/ B/K/M work. As 'man rbd' said: --stripe-unit size-in-B/K/M. But w/ B/K/M, the command failed and said invalid options. So fix it. Signed-off-by: Jianpeng Ma --- diff --git a/src/test/cli/rbd/help.t b/src/test/cli/rbd/help.t index df8ad63f851b..0158027d49dd 100644 --- a/src/test/cli/rbd/help.t +++ b/src/test/cli/rbd/help.t @@ -173,7 +173,7 @@ object-map(+*), fast-diff(+*), deep-flatten(+-), journaling(*), data-pool] --image-shared shared image - --stripe-unit arg stripe unit + --stripe-unit arg stripe unit in B/K/M --stripe-count arg stripe count --data-pool arg data pool --journal-splay-width arg number of active journal objects @@ -219,7 +219,7 @@ object-map(+*), fast-diff(+*), deep-flatten(+-), journaling(*), data-pool] --image-shared shared image - --stripe-unit arg stripe unit + --stripe-unit arg stripe unit in B/K/M --stripe-count arg stripe count --data-pool arg data pool --journal-splay-width arg number of active journal objects @@ -263,7 +263,7 @@ object-map(+*), fast-diff(+*), deep-flatten(+-), journaling(*), data-pool] --image-shared shared image - --stripe-unit arg stripe unit + --stripe-unit arg stripe unit in B/K/M --stripe-count arg stripe count --data-pool arg data pool --journal-splay-width arg number of active journal objects @@ -609,7 +609,7 @@ object-map(+*), fast-diff(+*), deep-flatten(+-), journaling(*), data-pool] --image-shared shared image - --stripe-unit arg stripe unit + --stripe-unit arg stripe unit in B/K/M --stripe-count arg stripe count --data-pool arg data pool --journal-splay-width arg number of active journal objects diff --git a/src/tools/rbd/ArgumentTypes.cc b/src/tools/rbd/ArgumentTypes.cc index 62b681483824..2f59f01dad98 100644 --- a/src/tools/rbd/ArgumentTypes.cc +++ b/src/tools/rbd/ArgumentTypes.cc @@ -270,7 +270,7 @@ void add_create_image_options(po::options_description *opt, (IMAGE_FEATURES.c_str(), po::value()->composing(), ("image features\n" + get_short_features_help(true)).c_str()) (IMAGE_SHARED.c_str(), po::bool_switch(), "shared image") - (IMAGE_STRIPE_UNIT.c_str(), po::value(), "stripe unit") + (IMAGE_STRIPE_UNIT.c_str(), po::value(), "stripe unit in B/K/M") (IMAGE_STRIPE_COUNT.c_str(), po::value(), "stripe count") (IMAGE_DATA_POOL.c_str(), po::value(), "data pool");