[systemd-devel] [PATCH] tmpfiles.d: change some 'd's to 'D's

Tom Gundersen teg at jklm.no
Wed Jan 11 03:41:13 PST 2012


On Wed, Jan 11, 2012 at 12:11 PM, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> 'Twas brillig, and Tom Gundersen at 02/01/12 23:28 did gyre and gimble:
>> The 'Age' filed only makes sense when used together with 'D', as
>> 'd' does not delete any files.
>>
>> Change all entries with a non-empty Age field from 'd' to 'D'.
>
> I'm pretty sure Lennart promised to merge this kind of patch a while ago
> when I discussed it with him in Prague. Slacker!

Kay convinced me on IRC that my patch is wrong. I promised an updated
manpage to clear up any confusion, but I have not gotten around to it
yet.

My confusion stemmed from the fact that I thought the Age field means
that the Action ('d' or 'D') is not applied to files younger than the
Age. However, the  semantics should be that the Age and the Action are
entirely independent: The Action is applied to files regardless of
their age; and files older than Age are deleted on --clean regardless
of the corresponding Action.

I still think that we might want to change the '/tmp' entry (and
possibly the ones you your patch) to 'D' as that would make the case
of tmpfs and non-tmpfs /tmp more similar, and I guess more in line
with what people expect (/tmp being emptied on boot).

Cheers,

Tom


More information about the systemd-devel mailing list