From 08fd09a856bfac3ba3a53fc68168b2fac9ffdadf Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Sun, 15 Nov 2015 21:37:44 +0200 Subject: [PATCH] rbd: stripe unit/count set incorrectly from config (after rbd-refactor fixup) Signed-off-by: Mykola Golub --- src/tools/rbd/Utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/rbd/Utils.cc b/src/tools/rbd/Utils.cc index 5d6e322813b25..02af9ef1f885f 100644 --- a/src/tools/rbd/Utils.cc +++ b/src/tools/rbd/Utils.cc @@ -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(); } 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(); } else { - *stripe_count = g_conf->rbd_default_stripe_unit; + *stripe_count = g_conf->rbd_default_stripe_count; } if ((*stripe_unit != 0 && *stripe_count == 0) || -- 2.39.5