]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crushtool: refine tunables warning message
authorSage Weil <sage@inktank.com>
Fri, 8 Jun 2012 18:17:14 +0000 (11:17 -0700)
committerSage Weil <sage@inktank.com>
Fri, 8 Jun 2012 18:17:14 +0000 (11:17 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/crushtool.cc

index 37d47fc62feb0f5f927e6bbb04ddbc9b5a737b2e..809144ccfe1c72459fc388f5a456b27f2e5d0842 100644 (file)
@@ -570,9 +570,13 @@ int main(int argc, const char **argv)
     crush.reweight(g_ceph_context);
     modified = true;
   }
+
+  const char *scary_tunables_message =
+    "** tunables are DANGEROUS and NOT YET RECOMMENDED.  DO NOT USE without\n"
+    "** confirming with developers that your use-case is safe and correct.";
   if (choose_local_tries >= 0) {
     if (!unsafe_tunables) {
-      cerr << me << " tunables NOT FULLY IMPLEMENTED; --enable-unsafe-tunables to enable" << std::endl;
+      cerr << scary_tunables_message << std::endl;
       return -1;
     }
     crush.set_choose_local_tries(choose_local_tries);
@@ -580,7 +584,7 @@ int main(int argc, const char **argv)
   }
   if (choose_local_fallback_tries >= 0) {
     if (!unsafe_tunables) {
-      cerr << me << " tunables NOT FULLY IMPLEMENTED; --enable-unsafe-tunables to enable" << std::endl;
+      cerr << scary_tunables_message << std::endl;
       return -1;
     }
     crush.set_choose_local_fallback_tries(choose_local_fallback_tries);
@@ -588,7 +592,7 @@ int main(int argc, const char **argv)
   }
   if (choose_total_tries >= 0) {
     if (!unsafe_tunables) {
-      cerr << me << " tunables NOT FULLY IMPLEMENTED; --enable-unsafe-tunables to enable" << std::endl;
+      cerr << scary_tunables_message << std::endl;
       return -1;
     }
     crush.set_choose_total_tries(choose_total_tries);