Blame SOURCES/autofs-5.1.0-force-disable-browse-mode-for-amd-format-maps.patch

6bbd11
autofs-5.1.0 - force disable browse mode for amd format maps
6bbd11
6bbd11
From: Ian Kent <ikent@redhat.com>
6bbd11
6bbd11
As in am-utils amd format maps using autofs file system don't support
6bbd11
the browse option and in autofs they don't work properly if it is used.
6bbd11
6bbd11
This might be implemented later but for now forcefully disable it.
6bbd11
---
6bbd11
 CHANGELOG              |    1 +
6bbd11
 lib/master_parse.y     |    2 ++
6bbd11
 modules/mount_autofs.c |    2 ++
6bbd11
 3 files changed, 5 insertions(+)
6bbd11
6bbd11
--- autofs-5.0.7.orig/CHANGELOG
6bbd11
+++ autofs-5.0.7/CHANGELOG
6bbd11
@@ -146,6 +146,7 @@
6bbd11
 - fix copy and paste error in dup_defaults_entry().
6bbd11
 - fix leak in parse_mount().
6bbd11
 - add mutex call return check in defaults.c.
6bbd11
+- force disable browse mode for amd format maps.
6bbd11
 
6bbd11
 25/07/2012 autofs-5.0.7
6bbd11
 =======================
6bbd11
--- autofs-5.0.7.orig/lib/master_parse.y
6bbd11
+++ autofs-5.0.7/lib/master_parse.y
6bbd11
@@ -810,6 +810,8 @@ int master_parse_entry(const char *buffe
6bbd11
 			logopt = LOGOPT_DEBUG;
6bbd11
 		else if (loglevel <= LOG_INFO && loglevel > LOG_ERR)
6bbd11
 			logopt = LOGOPT_VERBOSE;
6bbd11
+		/* amd mounts don't support browse mode */
6bbd11
+		ghost = 0;
6bbd11
 	}
6bbd11
 
6bbd11
 
6bbd11
--- autofs-5.0.7.orig/modules/mount_autofs.c
6bbd11
+++ autofs-5.0.7/modules/mount_autofs.c
6bbd11
@@ -261,6 +261,8 @@ int mount_mount(struct autofs_point *ap,
6bbd11
 			nap->pref = am_entry->pref;
6bbd11
 			am_entry->pref = NULL;
6bbd11
 		}
6bbd11
+		/* amd mounts don't support browse mode */
6bbd11
+		nap->flags &= ~MOUNT_FLAG_GHOST;
6bbd11
 	}
6bbd11
 
6bbd11
 	if (handle_mounts_startup_cond_init(&suc)) {