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