dovecot-2.0: unlink_directory(): Don't log EBUSY error for unlin...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 12 18:15:23 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/2aec6c74902c
changeset: 11984:2aec6c74902c
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 12 16:12:08 2010 +0100
description:
unlink_directory(): Don't log EBUSY error for unlink(.nfs*) directly.
The caller can decide if it wants to log it.
diffstat:
src/lib/unlink-directory.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 6f2c1fb1b7f1 -r 2aec6c74902c src/lib/unlink-directory.c
--- a/src/lib/unlink-directory.c Thu Aug 12 15:43:08 2010 +0100
+++ b/src/lib/unlink-directory.c Thu Aug 12 16:12:08 2010 +0100
@@ -126,6 +126,12 @@
}
errno = 0;
}
+ } else if (old_errno == EBUSY &&
+ strncmp(d->d_name, ".nfs", 4) == 0) {
+ /* can't delete NFS files that are still
+ in use. let the caller decide if this error
+ is worth logging about */
+ break;
} else {
/* so it wasn't a directory */
errno = old_errno;
More information about the dovecot-cvs
mailing list