File autofs-5.0.6-dont-mask-the-failure-to-unmount-busy-volumes.patch of Package autofs.openSUSE_11.4_Update

From: Leonardo Chiquitto <lchiquitto@suse.com>
Subject: don't mask the failure to unmount busy volumes
References: bnc#733479

Old versions of the umount binary don't distinguish between
a failed unmount (because the volume was busy) and a successful
unmount that failed only to update /etc/mtab. Both cases return
error code "16". Automount currently reads the error code as
if the unmount always succeeded and only mtab update failed.
This is not right and will cause problems when recreating
mount triggers that are used to reconnect to mounted volumes
when restarting AutoFS.

Index: autofs-5.0.5/daemon/spawn.c
===================================================================
--- autofs-5.0.5.orig/daemon/spawn.c
+++ autofs-5.0.5/daemon/spawn.c
@@ -620,12 +620,14 @@ int spawn_umount(unsigned logopt, ...)
 		}
 	}
 
+#if 0
 	/* This is not a fatal error */
 	if (ret == MTAB_NOTUPDATED) {
 		warn(logopt, "Unable to update the mtab file, /proc/mounts "
 		     "and /etc/mtab will differ");
 		ret = 0;
 	}
+#endif
 
 	return ret;
 }
openSUSE Build Service is sponsored by