Blame SOURCES/autofs-5.1.1-fix-left-mount-count-return.patch

306fa1
autofs-5.1.1 - fix left mount count return from umount_multi_triggers()
306fa1
306fa1
From: Xu Wang <xuw@redhat.com>
306fa1
306fa1
If a umount of an NFS mount at the root of a multi-mount fails
306fa1
umount_multi_triggers() will return an zero (success) when it should
306fa1
return 1 (a fail). In this case do_expire_direct() will close the
306fa1
me->ioctlfd fd used for expires stopping further expires of the
306fa1
direct mount.
306fa1
306fa1
Signed-off-by: Ian Kent <raven@themaw.net>
306fa1
---
306fa1
 CHANGELOG    |    1 +
306fa1
 lib/mounts.c |    2 +-
306fa1
 2 files changed, 2 insertions(+), 1 deletion(-)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -170,6 +170,7 @@
306fa1
 - remove unused offset handling code.
306fa1
 - fix mount as you go offset selection.
306fa1
 - init qdn before use in get_query_dn().
306fa1
+- fix left mount count return from umount_multi_triggers().
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
@@ -2130,7 +2130,7 @@ int umount_multi_triggers(struct autofs_
306fa1
 				if (mount_multi_triggers(ap, me, root, strlen(root), "/") < 0)
306fa1
 					warn(ap->logopt,
306fa1
 					     "failed to remount offset triggers");
306fa1
-				return left++;
306fa1
+				return ++left;
306fa1
 			}
306fa1
 		}
306fa1