summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-submount-offset-delete.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-submount-offset-delete.patch')
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-submount-offset-delete.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-submount-offset-delete.patch b/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-submount-offset-delete.patch
new file mode 100644
index 0000000000..b38e21433c
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs-5.0.7/autofs-5.0.7-fix-submount-offset-delete.patch
@@ -0,0 +1,45 @@
1autofs-5.0.7 - fix submount offset delete
2
3From: Ian Kent <ikent@redhat.com>
4
5As part of the implementation to allow for limited update of
6the internal hosts map by using a HUP signal some code that
7deleted any offset entries from the cache on lookup was removed
8as it appeared to not be needed.
9
10There is however a case where it is needed to avoid a duplicate
11cache entry failure on lookup.
12---
13
14 CHANGELOG | 1 +
15 daemon/automount.c | 4 ++--
16 2 files changed, 3 insertions(+), 2 deletions(-)
17
18
19diff --git a/CHANGELOG b/CHANGELOG
20index 7eb7235..76c1f73 100644
21--- a/CHANGELOG
22+++ b/CHANGELOG
23@@ -18,6 +18,7 @@
24 - fix map entry duplicate offset detection.
25 - Allow nsswitch.conf to not contain "automount:" lines.
26 - fix nobind man page description.
27+- fix submount offset delete.
28
29 25/07/2012 autofs-5.0.7
30 =======================
31diff --git a/daemon/automount.c b/daemon/automount.c
32index e56f9e1..4a3eb3d 100644
33--- a/daemon/automount.c
34+++ b/daemon/automount.c
35@@ -544,8 +544,8 @@ int umount_multi(struct autofs_point *ap, const char *path, int incl)
36 * If we are a submount we need to umount any offsets our
37 * parent may have mounted over top of us.
38 */
39- /*if (ap->submount)
40- left += umount_subtree_mounts(ap->parent, path, is_autofs_fs);*/
41+ if (ap->submount)
42+ left += umount_subtree_mounts(ap->parent, path, is_autofs_fs);
43
44 left += umount_subtree_mounts(ap, path, is_autofs_fs);
45