[dovecot-cvs] dovecot/src/lib ioloop-notify-inotify.c, 1.9.2.1, 1.9.2.2

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


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

Modified Files:
      Tag: branch_1_0
	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.9.2.1
retrieving revision 1.9.2.2
diff -u -d -r1.9.2.1 -r1.9.2.2
--- ioloop-notify-inotify.c	18 Aug 2006 11:35:58 -0000	1.9.2.1
+++ ioloop-notify-inotify.c	18 Jan 2007 16:44:06 -0000	1.9.2.2
@@ -112,7 +112,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