From b933e4f7c283b8faee952a1ce92234c9c4b7203d Mon Sep 17 00:00:00 2001 From: "Jeffrey E. Moyer" Date: Wed, 27 Apr 2005 00:58:27 +0000 Subject: [PATCH] - Fix a race between mounting a share and updating the cache in the parent process. If the mount completed first, the parent would not expire the stale entry, leaving it first on the list. This causes map updates to not be recognized (well, worse, they are recognized after the first expire, but not subsequent ones). Fixes a regression, bug #137026 (rhel3 bug). --- autofs.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/autofs.spec b/autofs.spec index a5d502a..d8c3f46 100644 --- a/autofs.spec +++ b/autofs.spec @@ -4,7 +4,7 @@ Summary: A tool for automatically mounting and unmounting filesystems. Name: autofs %define version 4.1.4 -%define release 5 +%define release 6 Version: %{version} Release: %{release} Epoch: 1 @@ -20,6 +20,7 @@ Patch6: autofs-4.1.4-non-replicated-ping.patch Patch7: autofs-4.1.4-check-nsswitch-submount.patch Patch8: autofs-4.1.3-alt-master-ldap.patch Patch9: autofs-4.1.4-check-is-multi.patch +Patch10: autofs-4.1.4-cache-update-race-fix.patch Buildroot: /var/tmp/autofs-tmp BuildPrereq: autoconf, hesiod-devel, openldap-devel, perl @@ -68,6 +69,7 @@ echo %{version}-%{release} > .version %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build #CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir} @@ -121,6 +123,13 @@ exit 0 %{_libdir}/autofs/* %changelog +* Tue Apr 26 2005 Jeff Moyer - 1:4.1.4-6 +- Fix a race between mounting a share and updating the cache in the parent + process. If the mount completed first, the parent would not expire the + stale entry, leaving it first on the list. This causes map updates to not + be recognized (well, worse, they are recognized after the first expire, but + not subsequent ones). Fixes a regression, bug #137026 (rhel3 bug). + * Fri Apr 15 2005 Chris Feist - 1:4.1.4-5 - Fixed regression with -browse not taking effect.