|
|
23b4c9 |
autofs-5.1.2 - dont exit on master map read fail timeout
|
|
|
23b4c9 |
|
|
|
23b4c9 |
From: Ian Kent <raven@themaw.net>
|
|
|
23b4c9 |
|
|
|
23b4c9 |
If there is a persistent master map read failure autofs should
|
|
|
23b4c9 |
continue on after the configured retry wait, as it would have
|
|
|
23b4c9 |
done previously.
|
|
|
23b4c9 |
|
|
|
23b4c9 |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
23b4c9 |
---
|
|
|
23b4c9 |
CHANGELOG | 1 +
|
|
|
23b4c9 |
daemon/automount.c | 12 ++++++++----
|
|
|
23b4c9 |
2 files changed, 9 insertions(+), 4 deletions(-)
|
|
|
23b4c9 |
|
|
|
23b4c9 |
--- autofs-5.0.7.orig/CHANGELOG
|
|
|
23b4c9 |
+++ autofs-5.0.7/CHANGELOG
|
|
|
23b4c9 |
@@ -209,6 +209,7 @@
|
|
|
23b4c9 |
- wait for master map available at start.
|
|
|
23b4c9 |
- add master read wait option.
|
|
|
23b4c9 |
- fix included master map not found return.
|
|
|
23b4c9 |
+- dont exit on master map read fail timeout.
|
|
|
23b4c9 |
|
|
|
23b4c9 |
25/07/2012 autofs-5.0.7
|
|
|
23b4c9 |
=======================
|
|
|
23b4c9 |
--- autofs-5.0.7.orig/daemon/automount.c
|
|
|
23b4c9 |
+++ autofs-5.0.7/daemon/automount.c
|
|
|
23b4c9 |
@@ -2510,10 +2510,14 @@ int main(int argc, char *argv[])
|
|
|
23b4c9 |
* error.
|
|
|
23b4c9 |
*/
|
|
|
23b4c9 |
if (!do_master_read_master(master_list, master_wait)) {
|
|
|
23b4c9 |
- logerr("%s: failed to read master map!", program);
|
|
|
23b4c9 |
- master_kill(master_list);
|
|
|
23b4c9 |
- release_flag_file();
|
|
|
23b4c9 |
- exit(3);
|
|
|
23b4c9 |
+ logmsg("%s: warning: could not read at least one "
|
|
|
23b4c9 |
+ "map source after waiting, continuing ...",
|
|
|
23b4c9 |
+ program);
|
|
|
23b4c9 |
+ /*
|
|
|
23b4c9 |
+ * Failed to read master map, continue with what
|
|
|
23b4c9 |
+ * we have anyway.
|
|
|
23b4c9 |
+ */
|
|
|
23b4c9 |
+ master_read_master(master_list, age, 1);
|
|
|
23b4c9 |
}
|
|
|
23b4c9 |
}
|
|
|
23b4c9 |
|