]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: reinstate freebsd ifdefs in options.cc
authorJohn Spray <john.spray@redhat.com>
Mon, 24 Jul 2017 12:19:06 +0000 (08:19 -0400)
committerJohn Spray <john.spray@redhat.com>
Mon, 24 Jul 2017 13:04:00 +0000 (09:04 -0400)
The automated conversion missed these.

Signed-off-by: John Spray <john.spray@redhat.com>
src/common/options.cc

index 7a333f01d1e8694e9875ea6a08e6efbae6c6f224..c98bd30a9382313d47b23d4054c94c3b85827ead 100644 (file)
@@ -528,7 +528,15 @@ std::vector<Option> global_options = {
   .set_description(""),
 
   Option("keyring", Option::TYPE_STR, Option::LEVEL_ADVANCED)
-  .set_default("/etc/ceph/$cluster.$name.keyring,/etc/ceph/$cluster.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,")
+  .set_default(
+    "/etc/ceph/$cluster.$name.keyring,/etc/ceph/$cluster.keyring,"
+    "/etc/ceph/keyring,/etc/ceph/keyring.bin," 
+#if defined(__FreeBSD)
+    "/usr/local/etc/ceph/$cluster.$name.keyring,"
+    "/usr/local/etc/ceph/$cluster.keyring,"
+    "/usr/local/etc/ceph/keyring,/usr/local/etc/ceph/keyring.bin," 
+#endif
+  )
   .set_description(""),
 
   Option("heartbeat_interval", Option::TYPE_INT, Option::LEVEL_ADVANCED)
@@ -621,11 +629,21 @@ std::vector<Option> global_options = {
   .set_description(""),
 
   Option("ms_bind_retry_count", Option::TYPE_INT, Option::LEVEL_ADVANCED)
+#if !defined(__FreeBSD__)
   .set_default(3)
+#else
+  // FreeBSD does not use SO_REAUSEADDR so allow for a bit more time per default
+  .set_default(6)
+#endif
   .set_description(""),
 
   Option("ms_bind_retry_delay", Option::TYPE_INT, Option::LEVEL_ADVANCED)
+#if !defined(__FreeBSD__)
   .set_default(5)
+#else
+  // FreeBSD does not use SO_REAUSEADDR so allow for a bit more time per default
+  .set_default(6)
+#endif
   .set_description(""),
 
   Option("ms_bind_before_connect", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
@@ -1646,11 +1664,15 @@ std::vector<Option> global_options = {
   .set_description(""),
 
   Option("osd_pool_default_erasure_code_profile", Option::TYPE_STR, Option::LEVEL_ADVANCED)
-  .set_default("plugin=jerasure " "technique=reed_sol_van " "k=2 " "m=1 ")
+  .set_default("plugin=jerasure technique=reed_sol_van k=2 m=1")
   .set_description(""),
 
   Option("osd_erasure_code_plugins", Option::TYPE_STR, Option::LEVEL_ADVANCED)
-  .set_default("jerasure" " lrc")
+  .set_default("jerasure lrc"
+#ifdef HAVE_BETTER_YASM_ELF64
+       " isa"
+#endif
+      )
   .set_description(""),
 
   Option("osd_allow_recovery_below_min_size", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)