Blame SOURCES/autofs-5.1.2-set-sane-default-master-read-wait-timeout.patch

306fa1
autofs-5.1.2 - set sane default master read wait timeout
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
If an unused map source is configured in nss, with the default
306fa1
of waiting indefinitely, autofs will not start.
306fa1
306fa1
To restore the previous behaviour of this case set a sensible
306fa1
default timeout for the configuration option master_wait.
306fa1
306fa1
Signed-off-by: Ian Kent <raven@themaw.net>
306fa1
---
306fa1
 CHANGELOG                      |    1 +
306fa1
 include/defaults.h             |    2 +-
306fa1
 man/autofs.conf.5.in           |    4 ++--
306fa1
 redhat/autofs.conf.default.in  |    6 +++---
306fa1
 samples/autofs.conf.default.in |    6 +++---
306fa1
 5 files changed, 10 insertions(+), 9 deletions(-)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -210,6 +210,7 @@
306fa1
 - add master read wait option.
306fa1
 - fix included master map not found return.
306fa1
 - dont exit on master map read fail timeout.
306fa1
+- set sane default master read wait timeout.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
--- autofs-5.0.7.orig/include/defaults.h
306fa1
+++ autofs-5.0.7/include/defaults.h
306fa1
@@ -25,7 +25,7 @@
306fa1
 #define DEFAULT_MASTER_MAP_NAME	"auto.master"
306fa1
 
306fa1
 #define DEFAULT_TIMEOUT			"600"
306fa1
-#define DEFAULT_MASTER_WAIT		"-1"
306fa1
+#define DEFAULT_MASTER_WAIT		"10"
306fa1
 #define DEFAULT_NEGATIVE_TIMEOUT	"60"
306fa1
 #define DEFAULT_MOUNT_WAIT		"-1"
306fa1
 #define DEFAULT_UMOUNT_WAIT		"12"
306fa1
--- autofs-5.0.7.orig/man/autofs.conf.5.in
306fa1
+++ autofs-5.0.7/man/autofs.conf.5.in
306fa1
@@ -32,8 +32,8 @@ with earlier autofs releases.
306fa1
 .TP
306fa1
 .B master_wait
306fa1
 sets the default maximum time to wait for the master map to become
306fa1
-available if it cannot be read at program start (program default -1,
306fa1
-wait forever).
306fa1
+available if it cannot be read at program start (program default 10,
306fa1
+wait for 10 seconds then continue).
306fa1
 .TP
306fa1
 .B negative_timeout
306fa1
 .br
306fa1
--- autofs-5.0.7.orig/redhat/autofs.conf.default.in
306fa1
+++ autofs-5.0.7/redhat/autofs.conf.default.in
306fa1
@@ -16,10 +16,10 @@ timeout = 300
306fa1
 #
306fa1
 # master_wait - set the default maximum time to wait for the
306fa1
 # 		master map to become available if it cannot
306fa1
-# 		be read at program start (default -1, wait
306fa1
-# 		forever).
306fa1
+# 		be read at program start (default 10, wait
306fa1
+# 		for 10 seconds then continue).
306fa1
 #
306fa1
-#master_wait = -1
306fa1
+#master_wait = 10
306fa1
 #
306fa1
 # negative_timeout - set the default negative timeout for
306fa1
 # 		     failed mount attempts (default 60).
306fa1
--- autofs-5.0.7.orig/samples/autofs.conf.default.in
306fa1
+++ autofs-5.0.7/samples/autofs.conf.default.in
306fa1
@@ -16,10 +16,10 @@ timeout = 300
306fa1
 #
306fa1
 # master_wait - set the default maximum time to wait for the
306fa1
 # 		master map to become available if it cannot
306fa1
-# 		be read at program start (default -1, wait
306fa1
-# 		forever).
306fa1
+# 		be read at program start (default 10, wait
306fa1
+# 		for 10 seconds then continue).
306fa1
 #
306fa1
-# master_wait = -1
306fa1
+# master_wait = 10
306fa1
 #
306fa1
 # negative_timeout - set the default negative timeout for
306fa1
 # 		     failed mount attempts (default 60).