Blame SOURCES/autofs-5.0.7-fix-submount-offset-delete.patch

306fa1
autofs-5.0.7 - fix submount offset delete
306fa1
306fa1
From: Ian Kent <ikent@redhat.com>
306fa1
306fa1
As part of the implementation to allow for limited update of
306fa1
the internal hosts map by using a HUP signal some code that
306fa1
deleted any offset entries from the cache on lookup was removed
306fa1
as it appeared to not be needed.
306fa1
306fa1
There is however a case where it is needed to avoid a duplicate
306fa1
cache entry failure on lookup.
306fa1
---
306fa1
306fa1
 CHANGELOG          |    1 +
306fa1
 daemon/automount.c |    4 ++--
306fa1
 2 files changed, 3 insertions(+), 2 deletions(-)
306fa1
306fa1
306fa1
diff --git a/CHANGELOG b/CHANGELOG
306fa1
index 7eb7235..76c1f73 100644
306fa1
--- a/CHANGELOG
306fa1
+++ b/CHANGELOG
306fa1
@@ -18,6 +18,7 @@
306fa1
 - fix map entry duplicate offset detection.
306fa1
 - Allow nsswitch.conf to not contain "automount:" lines.
306fa1
 - fix nobind man page description.
306fa1
+- fix submount offset delete.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
diff --git a/daemon/automount.c b/daemon/automount.c
306fa1
index e56f9e1..4a3eb3d 100644
306fa1
--- a/daemon/automount.c
306fa1
+++ b/daemon/automount.c
306fa1
@@ -544,8 +544,8 @@ int umount_multi(struct autofs_point *ap, const char *path, int incl)
306fa1
 	 * If we are a submount we need to umount any offsets our
306fa1
 	 * parent may have mounted over top of us.
306fa1
 	 */
306fa1
-	/*if (ap->submount)
306fa1
-		left += umount_subtree_mounts(ap->parent, path, is_autofs_fs);*/
306fa1
+	if (ap->submount)
306fa1
+		left += umount_subtree_mounts(ap->parent, path, is_autofs_fs);
306fa1
 
306fa1
 	left += umount_subtree_mounts(ap, path, is_autofs_fs);
306fa1