]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: fix --image-feature parsing
authorJosh Durgin <jdurgin@redhat.com>
Tue, 24 Feb 2015 05:36:13 +0000 (21:36 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 26 Feb 2015 01:27:33 +0000 (17:27 -0800)
Need to use _witharg(), not _flag()

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/rbd.cc

index 1c7470b6bb7295e783536cd0b6f8fe96aea462fc..895d3169f75b8075cf7977722e29facd566cd4f0 100644 (file)
@@ -2719,7 +2719,7 @@ int main(int argc, const char **argv)
       progress = false;
     } else if (ceph_argparse_flag(args, i , "--allow-shrink", (char *)NULL)) {
       resize_allow_shrink = true;
-    } else if (ceph_argparse_flag(args, i, "--image-features", (char *)NULL)) {
+    } else if (ceph_argparse_witharg(args, i, &val, "--image-features", (char *)NULL)) {
       features = strict_strtol(val.c_str(), 10, &parse_err);
       if (!parse_err.empty()) {
        cerr << "rbd: error parsing --image-features: " << parse_err