[systemd-devel] tmpfiles versus tmpwatch

Roger Qiu roger.qiu at polycademy.com
Wed Apr 29 03:28:26 PDT 2015


Doesn't relatime still update the time if the file is 1 day old 
(regardless of modication time), and the current tmpfiles wipes files 
that are older by 10 days?

 > Since Linux 2.6.30, the kernel defaults to the behavior provided by 
this option (unless |noatime| was specified), and the |strictatime| 
option is required to obtain traditional semantics. In addition, since 
Linux 2.6.30, the file's last access time is always updated if it is 
more than 1 day old.
 >
 > http://manpages.courier-mta.org/htmlman8/*mount*.8.html

On 29/04/2015 10:22 PM, Lennart Poettering wrote:
> On Wed, 29.04.15 22:08, Roger Qiu (roger.qiu at polycademy.com) wrote:
>
>> Hi Lennart,
>>
>> So there really isn't a fast of way just checking if a file has an open file
>> descriptor on it?
>>
>> Sometimes atime is on relatime, so it only gets updated if modification is
>> earlier.
> Using relatime is fine, except for /tmp and /var/tmp really. Setting
> the flag for those file systems is really a poor choice, since it
> breaks "aging" things there...
>
> Lennart
>

-- 
Founder of Matrix AI
http://matrix.ai/
+61420925975

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150429/3afc0a13/attachment.html>


More information about the systemd-devel mailing list