bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
62461eb609e1d852e027cf4e07d30d51288678a2 |
|
07-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Replace rand with i_rand |
adea69875046ece77dc36abd3f88a241a3f17ad9 |
|
10-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add asserts to make static analyzer happier. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
f83fd83f9c6708d198748e714aa947cad9362c02 |
|
24-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add FILE_LOCK_SLOW_WARNING_MSECS environment.
Log a warning if any locking takes longer than the specified number of
milliseconds. This can be enabled globally with:
import_environment = $import_environment FILE_LOCK_SLOW_WARNING_MSECS=1000 |
4a7e04d325db0c03f575f98f045246fceb0de279 |
|
23-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Track how much time has been spent on waiting for locks. |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
46b823ac3bce2c0f9f0fc73911e48d3a77b04fbe |
|
08-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
Replaced unlink() calls with i_unlink*() wherever possible. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
5a3ed55cdafe07a2bb0acd4073a4f849cffc908b |
|
27-Jun-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: two quite literally random little cleanups
file-dotlock.c does not use randgen.h, remove the #include
test-buffer.c random() has been used rather than rand()
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
6b5b3d9d0aa8009ca19e1f9455796258fb935012 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Fixed file_dotlock_replace(flags=DOTLOCK_REPLACE_FLAG_VERIFY_OWNER|DOTLOCK_REPLACE_FLAG_DONT_CLOSE_FD)
The verification check failed because fd was already set to -1 by that time.
Found by Coverity |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
4307c886579381dbb1897ea1388ae6978c96f560 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Changed i_close_fd() API to set the fd to -1 after closing. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
cb78bd2ad54e402c1f53930b41e2295683bda90b |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails. |
6cb2c6ecddcdbeac9e6c73a292244747e12a793e |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added file_dotlock_delete_verified() and changed file_dotlock_delete() to return void. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
a13e1540992b0957b9a8561f6bd62511247ccf6e |
|
21-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
file-dotlock: Avoid "timestamp is different than current time" errors during high disk I/O load. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
9757435c466339628b94d307851292ee3f6627a8 |
|
23-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
file_dotlock: And fix to previous change.. |
bbebb157d18f7b98b323260bdff96d0defa4d2ef |
|
23-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
file_dotlock: Don't warn about changed mtime when it's 1 second.
This is mainly to avoid bogus warnings with NFS and its caching. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
8ff346cf8baa6dae9dd9e846f10ef4d5fa28fed4 |
|
24-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
dotlocks: When locking using hard links, make sure the dotlock's timestamp is new enough. |
b8cee9a13e456a03bc42c2f084d637a754020984 |
|
20-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
dotlocks: Refresh current time after having waited for a lock. |
9261dbf0675204898c6557591c7aa376e23a52b2 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Started using str_to_*() functions instead of libc's ones.
--HG--
branch : HEAD |
8bb360f9e5de1c25e4f875205bb06e8bf15dae14 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Removed dead code.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
a7542b552dab9e041fc275813a3d1cf5888c30af |
|
22-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
file_dotlock_create(): If nfs_flush is enabled, fdatasync after writing PID.
This makes sure that the write() doesn't fail later in close() and cause
problems.
--HG--
branch : HEAD |
fb453e6ba70f848f975c34d030481edb7832609b |
|
29-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed file_dotlock_open*() logging errors in some OSes.
Patch by Ralf Becker.
--HG--
branch : HEAD |
3dc4900496d53e77f4105dbc0036abb8de965823 |
|
07-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
file_dotlock_open_*() shouldn't try to fchmod() with no uid/gid change.
Patch by Ralf Becker.
--HG--
branch : HEAD |
e156adefc1260d31a145df2f5e9b3c82050d4163 |
|
28-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Whenever file's group changing fails, show the group origin in the error message.
--HG--
branch : HEAD |
5361187c0d8bb71feb8b084da90f901a4c934865 |
|
16-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
safe_mkstemp() was used incorrectly. umask() no longer changes its behavior.
--HG--
branch : HEAD |
198b5bc155fda0c6ff49d48fa79b2a2bf6145414 |
|
01-May-2009 |
Timo Sirainen <tss@iki.fi> |
dotlocking: Don't generate "Will override dotlock in 0 secs" messages.
--HG--
branch : HEAD |
a425baf62f30f4b62250227ff97b4b01c4b01aff |
|
24-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Removed unused code.
Based on coccinelle output from Diego Liziero.
--HG--
branch : HEAD |
6ca8d19dd94eb79ba65d2c5b686c37225ab33adc |
|
26-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
dotlocking: Increase the wait time 1,5 x every second until we reach 3 seconds.
If the dotlock ever gets updated in any way, the wait time is dropped back
to the initial value of 0.1-0.2 secs.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
52f3cf26e1650cebd09109a4a655733c604f4751 |
|
10-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
file_dotlock_open_mode(): Log uid/gid in fchown() failures.
--HG--
branch : HEAD |
8a4878a2e0a696ac9de3fdf7077060cd3feed0bd |
|
09-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
dotlocking: If rename() fails due to ENOENT, show how long we kept the lock.
Also for all these "replaced/deleted" notifications show how long ago the
lock was last touched (if it ever was).
--HG--
branch : HEAD |
6f7617d14ae27473f55628fbdad2af2d75b909a9 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
Added file_dotlock_open_mode().
--HG--
branch : HEAD |
f0d94b1f11229d1fd0535ac684c74960baf49b1e |
|
08-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
dotlocking: Small code cleanups.
--HG--
branch : HEAD |
0a3d3ca7db7cbdc947ccabe740c40561b3f5c066 |
|
24-Apr-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed IO_NOTIFY_DISABLED to IO_NOTIFY_NOSUPPORT. IO_NOTIFY_NOSUPPORT is
now also given by dnotify when trying to listen for files. Fixes busy
looping with dnotify when waiting for dotlock to get deleted.
--HG--
branch : HEAD |
bb57a5fa95bf357be4c71f0499bf0347186ba825 |
|
24-Apr-2008 |
Timo Sirainen <tss@iki.fi> |
Comment updates
--HG--
branch : HEAD |
1030a690f16416f714f8036fce40b8e4a74a0e32 |
|
04-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
file_dotlock_create(): Don't log an EACCES failures.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
021665c0147e5c655efb2c3f0eff2549b31f6b5a |
|
07-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added file_dotlock_is_locked().
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
dd45ee57c3e6b19ff67b4643f52b153535cabe0c |
|
29-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
If dotlock file contains pid <= 0, assume it's invalid.
--HG--
branch : HEAD |
d05f58d1a60652fc0c53edae49d116befd60b625 |
|
29-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
If we use notify I/O to watch for dotlock deletion, make sure we still sleep
a while after overriding a dotlock. Otherwise multiple processes might try
to do that at the same time and unlink each others' newly created dotlocks.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
413835a5cf1cb44f62a2adc3123a7d3342b62066 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Code cleanups
--HG--
branch : HEAD |
04b8a90af181cc4c7959266855e8ed50a22ed413 |
|
25-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
NFS cache flushing updates.
--HG--
branch : HEAD |
bc564f1d3d953cf724828322b11ae89e0f59ffc9 |
|
18-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
NFS cache flushing APIs changed and backend implements it a bit differently.
Hopefully this works now more correctly.
--HG--
branch : HEAD |
4ee5b0b6c14f1f839e54e9d2c13a3c151e8caec0 |
|
16-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
nfs_flush_attr_cache() doesn't take flush_dir paramter anymore. Instead the
directory is always flushed now.
--HG--
branch : HEAD |
9716b2665ee3938d3dfe64bda44d7c3ae3b55d30 |
|
16-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
nfs_safe_link(): Support linking files without original link count=1. Use it
when copying maildir files, but only if mail_nfs_storage=yes.
--HG--
branch : HEAD |
d98109d230575391c1dfe1bea3800d3ff0ac3f11 |
|
15-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Use nfs_safe_link() instead of link().
--HG--
branch : HEAD |
5ca36364f67135c95f8b5b7f11e4ad6e5e66ff24 |
|
15-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
If file_dotlock_create() fails with "dotlock was immediately recreated under
us", return errno=ENOENT.
--HG--
branch : HEAD |
f98580b24f2fa10493e996ac5850737e078530b3 |
|
14-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Don't flush attribute cache the first time when stating a lock file. Usually
the locking works fine without it.
--HG--
branch : HEAD |
dec85d9856c33f427a06dda01e0e50de0bc8fa7d |
|
14-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
NFS attribute cache flushing fixes. nfs_flush_attr_cache() takes now
flush_dir parameter and nfs_flush_attr_cache_fd() returns FALSE if file
handle is already stale.
--HG--
branch : HEAD |
b3a069922c8150a1cb14ec7683444f60dee98b55 |
|
11-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Don't log an ENOENT error.
--HG--
branch : HEAD |
73a3d209062ede6bda2db328808e36390faf0a72 |
|
28-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
If dotlock was less than 2 seconds old, we never read PID from it. Now it's
read after 2 seconds.
--HG--
branch : HEAD |
8fb31d963d484e2b9e1def6756afcc22c18c0310 |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Check ctimes after all, but only as long as nfs_flush=FALSE.
--HG--
branch : HEAD |
8da095519878426b012058e6f331a669f327f47f |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
dotlocks: Flush NFS attribute cache only if nfs_flush setting is TRUE.
--HG--
branch : HEAD |
0fcd79110ad9a7a799d986cf7e64af453369f2c2 |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Don't check ctime changes, because we change it ourself all the time when
flushing NFS attribute caches.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
6687a4b62f0f292d017982820d414b55020f00dc |
|
12-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Flush NFS attribute cache before stat()ing files.
--HG--
branch : HEAD |
d2e0d8ee40bff599057a68c5b3e03604e9a22ccc |
|
12-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Use nfs_safe_lstat() when dotlocking. Also use lstat() not stat() for
checking how our file was created (probably doesn't ever really matter).
--HG--
branch : HEAD |
fdcb22a688c4676face8db865736b217d9c07d19 |
|
09-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
If use_io_notify dotlock setting is enabled, use I/O notify loop for waiting
dotlock deletion instead of just sleeping randomly.
--HG--
branch : HEAD |
ee19b4573879d83353c2e32e5ac2f5480dec55ea |
|
25-May-2007 |
Timo Sirainen <tss@iki.fi> |
Continuing the previous time difference commit..
--HG--
branch : HEAD |
20bd0cd4a6064effc30d16d2f577480e3879d15f |
|
25-May-2007 |
Timo Sirainen <tss@iki.fi> |
Log a warning if filesystem's clock is +-30 different from the system clock
(fix the previous wrong check).
--HG--
branch : HEAD |
8987e9901d2339c9c688ef40057b69c0d828a66f |
|
25-May-2007 |
Timo Sirainen <tss@iki.fi> |
If created dotlock file's ctime is smaller than the current time (NFS
server's clock is wrong), log a warning.
--HG--
branch : HEAD |
07b6bda47b4e026aedc26c8ff5f0722e50523135 |
|
11-May-2007 |
Timo Sirainen <tss@iki.fi> |
Give a better error message if dotlock is deleted immediately under us (or
more likely an OS bug).
--HG--
branch : HEAD |
6d3374b2113005515da30bca67e063d3fbac6fda |
|
11-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Use safe_mkstemp() instead of doing it ourself.
--HG--
branch : HEAD |
508ab84e8d81ccdf05dd48e3fbd7d0faa4f4ab0b |
|
11-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Use lstat() instead of stat() to check if temporary file already exists.
--HG--
branch : HEAD |
22bcfbefeb32d8b787a3449139cdba550c4cf1b8 |
|
17-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If dotlock is newer than 2 seconds, don't bother reading PID from it and
checking if the process still exists. It most likely does.
--HG--
branch : HEAD |
964e4bf230d135ce1915c7523d7e019bd7698c54 |
|
17-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Log "kept it for n seconds", not -n seconds.
--HG--
branch : HEAD |
172c0576f70fda6c3339f4964f7423d964c52088 |
|
08-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
If dotlock creation timeouts, unlink() the temp file we used
--HG--
branch : HEAD |
8239f0d1f537546d3c9d956bac9b907480700820 |
|
08-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
When checking if we want to override dotlocks, don't use the
file-to-be-locked file's mtime if it's higher than current time.
--HG--
branch : HEAD |
433a716f8a27cd7701de7c187e3882042535a424 |
|
08-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Using file_dotlock_touch() caused Dovecot to think the dotlock had been
modified by someone else.
--HG--
branch : HEAD |
f448ef97d205bef3ced4d4aaced95914fcfe2d5d |
|
20-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Fixed last change: added missing '/' back
--HG--
branch : HEAD |
e75ea33b31009cd6f6917fb7fdab737a2112d775 |
|
20-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
file_dotlock_get_lock_path() doesn't return the path from data stack
anymore. Also changed the internal logic to use less data stack as well.
--HG--
branch : HEAD |
2b2f981763385223489f8da163bbacd7d1a98cbc |
|
31-Mar-2006 |
Timo Sirainen <tss@iki.fi> |
Added some t_push/t_pop calls
--HG--
branch : HEAD |
933a8cc7033e8a9bb7a1c7630fbc786b914f1510 |
|
05-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Added file_dotlock_touch() for updating lock file's timestamp.
--HG--
branch : HEAD |
8ecbb74bc4c7f6f6145da3525941d1d0e20e67f1 |
|
05-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Removed immediate_stale_timeout and changed the stale_timeout behavior to
check both dotlock and the file it protects, and overwrite the lock file
whenever neither of them have been modified for stale_timeout seconds (ie.
also immediately if their timestamps are old enough).
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
d3dee2335ff3b0943085256fe341c2c13a678c4f |
|
25-Nov-2005 |
Timo Sirainen <tss@iki.fi> |
Added file_dotlock_get_lock_path()
--HG--
branch : HEAD |
a5beddea9219aeb05ee3f0e9a8e65c02a5783fad |
|
18-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
compiler warning fix
--HG--
branch : HEAD |
cfbe8dbf68fd1c2a98444cdfd0145e002965dd50 |
|
16-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
If dotlock is overwritten/deleted, say in the error message how long we kept
the lock.
--HG--
branch : HEAD |
860c6cf85bd2a3808ab3a480aa697bac24c291dc |
|
28-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
Support creating locks with O_EXCL.
--HG--
branch : HEAD |
cdc92da93a1ae87906eb00c3e620b156a73211f8 |
|
05-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
If we failed to lock the dotlock, don't try to close the file twice.
--HG--
branch : HEAD |
dbce9fa48677afe01c683654fa17ddd4e035fb1d |
|
31-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Inode info wasn't saved when using file_dotlock_open() so
file_dotlock_delete() thought it was overridden and didn't delete it.
--HG--
branch : HEAD |
13c6532dc104d23061e6901783ceb1ff8872c206 |
|
16-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Changed dotlocking API.
--HG--
branch : HEAD |
3b96ba08acc7663f3d3868951b3ecb9ac687be47 |
|
06-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Use random_fill_weak() when creating dotlock file names.
--HG--
branch : HEAD |
ce9bd5750bc1cd181a03762cc83a39e443942ebb |
|
07-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
If pid in dotlock file is same as ours, assume a stale lock file.
--HG--
branch : HEAD |
9252fb0482d033915d894bf205ff8c37a5632d8c |
|
11-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Check that dotlock PID exists even if we don't do stale lock timeouting.
--HG--
branch : HEAD |
8a7dcf3d450d7fbbd55db56d543fc45b698b1f9e |
|
10-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Write host:pid into lock file *before* link()ing it into real lock file.
--HG--
branch : HEAD |
b8300b13faf9e079464a370631eca06d17a1143c |
|
22-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Re-read the PID from lock file every time before checking if it exists,
because it may have changed.
--HG--
branch : HEAD |
fe95fb951b2776f244ba3181aeecdbb84317c40a |
|
15-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
compiler warning fixes
--HG--
branch : HEAD |
d6f2a39470b2d0b9e44bd886abacd41e6e1ec2d2 |
|
28-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
don't close dotlock fd if it's given as -1
--HG--
branch : HEAD |
e58593922c517619a092ed548bd2c1d205fc0746 |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Never overflow secs_left for stale timeout callback
--HG--
branch : HEAD |
d1414c09cf0d58ac983054e2f4e1a1f329272dcf |
|
29-May-2004 |
Timo Sirainen <tss@iki.fi> |
Removed hardcoded mechanism lists. It's now possible to add them
dynamically. Added support for SASL initial response.
--HG--
branch : HEAD |
ac67a027f8db99d0b65c656fe1e4f26261ae750f |
|
17-May-2004 |
Timo Sirainen <tss@iki.fi> |
file_dotlock_delete(): don't complain about mtime changes in lock file, as
we most likely did it ourself
--HG--
branch : HEAD |
d5960ce1c0adda5c9e259bc429123ebc29c60bae |
|
04-May-2004 |
Timo Sirainen <tss@iki.fi> |
file_dotlock_open/delete/replace now has lock_suffix parameter. NULL
defaults to ".lock".
Fixed dotlocking transaction log.
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |
181aa01111e2de2dae413b4c1ccfcfc4e801ac40 |
|
20-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
fixed dovecot-uidlist permissions for shared mailboxes
--HG--
branch : HEAD |
0de67e4b387ae597f674cf76ae7383d124d74bc6 |
|
20-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
Added dotlock parameter to specify how old lock file has to be to be
immediately deleted. This fixes the problem of never deleting uidlist.lock
files.
--HG--
branch : HEAD |
83bce03e58f5febd7dc67d89480dd902304787e4 |
|
20-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
save errno in failures
--HG--
branch : HEAD |
c02059e3bb5e646ca8e3bbb2a0cc7067a74b615f |
|
15-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Minor speedup
--HG--
branch : HEAD |
892f02d4ab8f764f86015009aaf7437349398286 |
|
05-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Moved all dotlocking code to lib/. Also we now use temp file + link() rather
than rely on working O_EXCL.
--HG--
branch : HEAD |
ef5ad624ab2463cbbb58e7a616de9e6b191fcb3b |
|
17-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
We got dotlock's mtime before modifying it, which caused problems sometimes.
--HG--
branch : HEAD |
4ea21f54bb97c0204539760f74eb08323ecde63a |
|
15-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
Use different warning message for dotlock mtime change.
--HG--
branch : HEAD |
915670e66a43b4396cc8fc9b3f586015a443bf4e |
|
21-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Call the hostpid_init() always at startup. Easier than doing it all around.
--HG--
branch : HEAD |
94f9cf3436f949d6450e8cda523979fc1b11f103 |
|
14-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Don't even try to override mbox dotlock if we can't get fcntl/flock.
--HG--
branch : HEAD |
48f78a48f2e1cf299026544444666471ae16ad97 |
|
12-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Locking code cleanups and small fixes
--HG--
branch : HEAD |