diff -r 63117ab893dc src/lib/file-dotlock.c --- a/src/lib/file-dotlock.c Tue Feb 05 16:48:29 2013 +0200 +++ b/src/lib/file-dotlock.c Tue Feb 05 10:23:12 2013 -0800 @@ -581,11 +581,15 @@ dotlock->lock_time = now; lock_info.fd = -1; - if (st.st_ctime + MAX_TIME_DIFF < now || - st.st_ctime - MAX_TIME_DIFF > now) { + if (st.st_ctime + MAX_TIME_DIFF < now) { i_warning("Created dotlock file's timestamp is " - "different than current time " - "(%s vs %s): %s", dec2str(st.st_ctime), + "before current time (%s vs %s): %s", + dec2str(st.st_ctime), dec2str(now), + dotlock->path); + } else if (st.st_ctime - MAX_TIME_DIFF > now) { + i_warning("Took more than %u seconds to stat " + "dotlock file (%s vs %s): %s", + MAX_TIME_DIFF, dec2str(st.st_ctime), dec2str(now), dotlock->path); } }