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

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