Re: [PATCH] Do not remove UUID file when a scanned directory is empty

Akira TAGOH <[email protected]> Fri, 26 Oct 2018 12:29:48 +0900
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <CACT-Cx0FDWc_F+RCksrS2p1iHgapTpcgMY4HhTMeKAnMCtpGZg@mail.gmail.com>
On Fri, Oct 26, 2018 at 4:38 AM Keith Packard <[email protected]> wrote:
> The important part is to not affect the directory mod time when removing
> the file or any other process will re-scan at that time, which causes it
> to re-create the UUID file and re-delete it, again adjusting the
> directory modification time forever.

Right. and that has already been done in git. but this still seems not
enough for AppArmor. so I'm planning to take an action of removal only
when running fc-cache or similar as a result.

> If possible, avoiding creation of the UUID file until it is necessary
> would be better, but I didn't want to change the order of that wrt
> scanning subdirectories.
>
> --
> -keith



-- 
Akira TAGOH
_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig