mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Fix archive file expiration.
This commit is contained in:
parent
f4db3724f9
commit
d6207798e6
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.03 -
|
Version 2.02.03 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix archive file expiration.
|
||||||
Fix dmeventd build.
|
Fix dmeventd build.
|
||||||
|
|
||||||
Version 2.02.02 - 7th February 2006
|
Version 2.02.02 - 7th February 2006
|
||||||
|
@ -207,8 +207,8 @@ static void _remove_expired(struct list *archives, uint32_t archives_size,
|
|||||||
/* Convert retain_days into the time after which we must retain */
|
/* Convert retain_days into the time after which we must retain */
|
||||||
retain_time = time(NULL) - (time_t) retain_days *SECS_PER_DAY;
|
retain_time = time(NULL) - (time_t) retain_days *SECS_PER_DAY;
|
||||||
|
|
||||||
/* Assume list is ordered oldest first (by index) */
|
/* Assume list is ordered newest first (by index) */
|
||||||
list_iterate_items(bf, archives) {
|
list_iterate_back_items(bf, archives) {
|
||||||
/* Get the mtime of the file and unlink if too old */
|
/* Get the mtime of the file and unlink if too old */
|
||||||
if (stat(bf->path, &sb)) {
|
if (stat(bf->path, &sb)) {
|
||||||
log_sys_error("stat", bf->path);
|
log_sys_error("stat", bf->path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user