Re: [PATCH] prune: keep files created after process start
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Jun 19, 2016, 07:11 UTC
- Message-ID
- <m2wpllhcut.fsf@linux-m68k.org>
- In-Reply-To
- <20160619031338.GA5161@dcvr.yhbt.net>
Eric Wong <e@80x24.org> writes:
Show 6 quoted lines
> @@ -21,7 +22,7 @@ static int prune_tmp_file(const char *fullpath)
> struct stat st;
> if (lstat(fullpath, &st))
> return error("Could not stat '%s'", fullpath);
> - if (st.st_mtime > expire)
> + if (st.st_mtime > expire || st.st_ctime >= start)That will also mean objects created (or their inode changed) up to a second before the start of prune will not be removed. For example, objects ejected out of a pack by a previous repack may be affected.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."