[PATCH 03/34] autofs-5.1.2 - set sane default master read wait timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If an unused map source is configured in nss, with the default
of waiting indefinitely, autofs will not start.

To restore the previous behaviour of this case set a sensible
default timeout for the configuration option master_wait.

Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
---
 CHANGELOG                      |    1 +
 include/defaults.h             |    2 +-
 man/autofs.conf.5.in           |    4 ++--
 redhat/autofs.conf.default.in  |    6 +++---
 samples/autofs.conf.default.in |    6 +++---
 5 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 85b1480..92a6ea9 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -29,6 +29,7 @@ xx/xx/2016 autofs-5.1.3
 - fix quoted key handling in sanitize_path().
 - fix included master map not found return.
 - dont exit on master map read fail timeout.
+- set sane default master read wait timeout.
 
 15/06/2016 autofs-5.1.2
 =======================
diff --git a/include/defaults.h b/include/defaults.h
index 1dea48c..b93fda3 100644
--- a/include/defaults.h
+++ b/include/defaults.h
@@ -25,7 +25,7 @@
 #define DEFAULT_MASTER_MAP_NAME	"auto.master"
 
 #define DEFAULT_TIMEOUT			"600"
-#define DEFAULT_MASTER_WAIT		"-1"
+#define DEFAULT_MASTER_WAIT		"10"
 #define DEFAULT_NEGATIVE_TIMEOUT	"60"
 #define DEFAULT_MOUNT_WAIT		"-1"
 #define DEFAULT_UMOUNT_WAIT		"12"
diff --git a/man/autofs.conf.5.in b/man/autofs.conf.5.in
index 93ff7af..a9a08f9 100644
--- a/man/autofs.conf.5.in
+++ b/man/autofs.conf.5.in
@@ -32,8 +32,8 @@ with earlier autofs releases.
 .TP
 .B master_wait
 sets the default maximum time to wait for the master map to become
-available if it cannot be read at program start (program default -1,
-wait forever).
+available if it cannot be read at program start (program default 10,
+wait for 10 seconds then continue).
 .TP
 .B negative_timeout
 .br
diff --git a/redhat/autofs.conf.default.in b/redhat/autofs.conf.default.in
index 9bceab3..c7e4d97 100644
--- a/redhat/autofs.conf.default.in
+++ b/redhat/autofs.conf.default.in
@@ -16,10 +16,10 @@ timeout = 300
 #
 # master_wait - set the default maximum time to wait for the
 # 		master map to become available if it cannot
-# 		be read at program start (default -1, wait
-# 		forever).
+# 		be read at program start (default 10, wait
+# 		for 10 seconds then continue).
 #
-#master_wait = -1
+#master_wait = 10
 #
 # negative_timeout - set the default negative timeout for
 # 		     failed mount attempts (default 60).
diff --git a/samples/autofs.conf.default.in b/samples/autofs.conf.default.in
index a275e08..d52ad85 100644
--- a/samples/autofs.conf.default.in
+++ b/samples/autofs.conf.default.in
@@ -16,10 +16,10 @@ timeout = 300
 #
 # master_wait - set the default maximum time to wait for the
 # 		master map to become available if it cannot
-# 		be read at program start (default -1, wait
-# 		forever).
+# 		be read at program start (default 10, wait
+# 		for 10 seconds then continue).
 #
-# master_wait = -1
+# master_wait = 10
 #
 # negative_timeout - set the default negative timeout for
 # 		     failed mount attempts (default 60).

--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux