[dovecot-cvs] dovecot/src/lib ioloop-notify-inotify.c,1.11,1.12

tss at dovecot.org tss at dovecot.org
Thu Jan 18 16:44:11 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv21517

Modified Files:
	ioloop-notify-inotify.c 
Log Message:
If inotify_add_watch() fails with ESTALE, don't log an error.



Index: ioloop-notify-inotify.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-notify-inotify.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- ioloop-notify-inotify.c	15 Dec 2006 18:38:10 -0000	1.11
+++ ioloop-notify-inotify.c	18 Jan 2007 16:44:09 -0000	1.12
@@ -110,7 +110,10 @@
 	
 	if (watchdescriptor < 0) {
 		ctx->disabled = TRUE;
-		i_error("inotify_add_watch(%s) failed: %m", path);
+		/* ESTALE could happen with NFS. Don't bother giving an error
+		   message then. */
+		if (errno != ESTALE)
+			i_error("inotify_add_watch(%s) failed: %m", path);
 		return NULL;
 	}
 



More information about the dovecot-cvs mailing list