Blame SOURCES/autofs-5.0.8-dont-ignore-null-cache-entries-on-multi-mount-umount.patch

4d476f
autofs-5.0.8 - dont ignore null cache entries on multi mount umount
4d476f
4d476f
From: Ian Kent <raven@themaw.net>
4d476f
4d476f
When umounting the offsets of a multi-mount negative cache entries
4d476f
shouldn't be ignored. Even if the mount they correspond to failed to
4d476f
mount the trigger still needs to be umounted.
4d476f
4d476f
Not ignoring negative entries when cleaning stale multi-mount entries
4d476f
isn't obviously the right thing to do but, since the multi-mount entry
4d476f
should have been refreshed, there shouldn't be any valid negative entries
4d476f
so they must be stale and need to go.
4d476f
---
4d476f
 CHANGELOG    |    1 +
4d476f
 lib/mounts.c |    4 ++--
4d476f
 2 files changed, 3 insertions(+), 2 deletions(-)
4d476f
4d476f
--- autofs-5.0.7.orig/CHANGELOG
4d476f
+++ autofs-5.0.7/CHANGELOG
4d476f
@@ -97,6 +97,7 @@
4d476f
 - fix map source with type lookup.
4d476f
 - fix fix map source with type lookup.
4d476f
 - fix lookup_nss_mount() map lookup.
4d476f
+- dont ignore null cache entries on multi mount umount.
4d476f
 
4d476f
 25/07/2012 autofs-5.0.7
4d476f
 =======================
4d476f
--- autofs-5.0.7.orig/lib/mounts.c
4d476f
+++ autofs-5.0.7/lib/mounts.c
4d476f
@@ -1804,7 +1804,7 @@ int umount_multi_triggers(struct autofs_
4d476f
 
4d476f
 		oe = cache_lookup_offset(mm_base, offset, start, &me->multi_list);
4d476f
 		/* root offset is a special case */
4d476f
-		if (!oe || !oe->mapent || (strlen(oe->key) - start) == 1)
4d476f
+		if (!oe || (strlen(oe->key) - start) == 1)
4d476f
 			continue;
4d476f
 
4d476f
 		/*
4d476f
@@ -1926,7 +1926,7 @@ int clean_stale_multi_triggers(struct au
4d476f
 
4d476f
 		oe = cache_lookup_offset(mm_base, offset, start, &me->multi_list);
4d476f
 		/* root offset is a special case */
4d476f
-		if (!oe || !oe->mapent || (strlen(oe->key) - start) == 1)
4d476f
+		if (!oe || (strlen(oe->key) - start) == 1)
4d476f
 			continue;
4d476f
 
4d476f
 		/* Check for and umount stale subtree offsets */