svn commit: r270210 - head/usr.sbin/autofs
Edward Tomasz Napierala
trasz at FreeBSD.org
Wed Aug 20 13:54:28 UTC 2014
Author: trasz
Date: Wed Aug 20 13:54:27 2014
New Revision: 270210
URL: http://svnweb.freebsd.org/changeset/base/270210
Log:
Remove useless - and buggy, it resulted in spurious warnings in logs - code.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Modified:
head/usr.sbin/autofs/autounmountd.c
Modified: head/usr.sbin/autofs/autounmountd.c
==============================================================================
--- head/usr.sbin/autofs/autounmountd.c Wed Aug 20 13:52:47 2014 (r270209)
+++ head/usr.sbin/autofs/autounmountd.c Wed Aug 20 13:54:27 2014 (r270210)
@@ -182,7 +182,6 @@ expire_automounted(double expiration_tim
time_t now;
double mounted_for, mounted_max = 0;
int error;
- bool unmounted = false;
now = time(NULL);
@@ -211,20 +210,9 @@ expire_automounted(double expiration_tim
if (error != 0) {
if (mounted_for > mounted_max)
mounted_max = mounted_for;
- } else {
- unmounted = true;
}
}
- if (unmounted) {
- /*
- * Successful unmount of a filesystem could unbusy its parent
- * filesystem that can now be unmounted.
- */
- log_debugx("filesystem got unmounted; go around");
- return (expire_automounted(expiration_time));
- }
-
return (mounted_max);
}
More information about the svn-src-head
mailing list