]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: stripe unit/count set incorrectly from config 6593/head
authorMykola Golub <mgolub@mirantis.com>
Sun, 15 Nov 2015 19:37:44 +0000 (21:37 +0200)
committerMykola Golub <mgolub@mirantis.com>
Sun, 15 Nov 2015 19:37:44 +0000 (21:37 +0200)
(after rbd-refactor fixup)

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/tools/rbd/Utils.cc

index 5d6e322813b25fe9ef0dfa64d8953ca5b2d84075..02af9ef1f885fe4137c0906dd2bf2472e55f1d5c 100644 (file)
@@ -226,13 +226,13 @@ int get_image_options(const boost::program_options::variables_map &vm,
   if (vm.count(at::IMAGE_STRIPE_UNIT)) {
     *stripe_unit = vm[at::IMAGE_STRIPE_UNIT].as<uint32_t>();
   } else {
-    *stripe_unit = g_conf->rbd_default_stripe_count;
+    *stripe_unit = g_conf->rbd_default_stripe_unit;
   }
 
   if (vm.count(at::IMAGE_STRIPE_COUNT)) {
     *stripe_count = vm[at::IMAGE_STRIPE_COUNT].as<uint32_t>();
   } else {
-    *stripe_count = g_conf->rbd_default_stripe_unit;
+    *stripe_count = g_conf->rbd_default_stripe_count;
   }
 
   if ((*stripe_unit != 0 && *stripe_count == 0) ||