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

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