]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: use default order value from g_conf 6965/head
authorYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Fri, 18 Dec 2015 07:16:20 +0000 (15:16 +0800)
committerYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Fri, 18 Dec 2015 07:16:20 +0000 (15:16 +0800)
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
src/tools/rbd/Utils.cc

index 3f6cc2a1019cda599b2d40a2c3090546f1ff69ae..94db13b53c6156e4c9488fa3ff88a6f38c5473c0 100644 (file)
@@ -328,7 +328,7 @@ int get_image_options(const boost::program_options::variables_map &vm,
     object_size = vm[at::IMAGE_OBJECT_SIZE].as<uint64_t>();
     order = std::round(std::log2(object_size)); 
   } else {
-    order = 22;
+    order = g_conf->rbd_default_order;
   }
 
   if (vm.count(at::IMAGE_FEATURES)) {