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

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