annotate src/lib/unlink-old-files.h @ 22664:fea53c2725c0

director: Fix director_max_parallel_moves/kicks type Should be uint, not time.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 09 Nov 2017 12:24:16 +0200
parents 091b9f49f24f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6957
d421f14ba797 Removed unlink_lockfiles() and replaced it with a simpler unlink_old_files()
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
1 #ifndef UNLINK_OLD_FILES_H
d421f14ba797 Removed unlink_lockfiles() and replaced it with a simpler unlink_old_files()
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
2 #define UNLINK_OLD_FILES_H
d421f14ba797 Removed unlink_lockfiles() and replaced it with a simpler unlink_old_files()
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3
d421f14ba797 Removed unlink_lockfiles() and replaced it with a simpler unlink_old_files()
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
4 /* Unlink all files from directory beginning with given prefix and having
14378
091b9f49f24f unlink_old_files(): Update atime before scan, not after.
Timo Sirainen <tss@iki.fi>
parents: 6957
diff changeset
5 ctime older than min_time. Makes sure that the directory's atime is updated.
091b9f49f24f unlink_old_files(): Update atime before scan, not after.
Timo Sirainen <tss@iki.fi>
parents: 6957
diff changeset
6 Returns -1 if there were some errors. */
6957
d421f14ba797 Removed unlink_lockfiles() and replaced it with a simpler unlink_old_files()
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7 int unlink_old_files(const char *dir, const char *prefix, time_t min_time);
d421f14ba797 Removed unlink_lockfiles() and replaced it with a simpler unlink_old_files()
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8
d421f14ba797 Removed unlink_lockfiles() and replaced it with a simpler unlink_old_files()
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9 #endif