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

"Keith Packard" <[email protected]> Thu, 25 Oct 2018 12:38:11 -0700
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
Akira TAGOH <[email protected]> writes:

> Thanks for the patch. I'll move this process into the separate API and
> call it only when running fc-cache with some option.

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.

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

_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlvSG6MACgkQ2yIaaQAA
ABFsFg/9EbThIlzE8XluJA79r3UyDi1Y2eJquL0b7MJpmgiqM1bznZODnh9YBjkq
ney3b0eqz/UB+28wWUrhwzu6520N2TRNLdpwYsUt7oQ62/dXf0xUe/X5z4Z1rh0A
H10hCdwPeddhXfcxn2PF++t2ft71JrAIrRktOJfkZuoYXJ1HyW20NtSvXAtP3hfF
rmZvkkqhbX+SXWhjSxbevrIuzuncEfALT3VBl0RxlDhoO5BItq71F0GTLaSkm4I9
yGUBCjGV10BfDRufsoSzmbv8ZOwadjFTRsLmv88DO22S31WiDju121N25F2lOJtX
RWW3B0SqLs65pAQKdnX5JbpkvNfhOEFcsHBb2YtlwrlcGVcqc91F9mPrG8STwZJA
Kc3ojhAy8Aqm9nLdGl9SqNARpV9oErcJB4Z7SgUze4EG22p1y6guZIqfkFVzfvPq
u6mgTITYBhhUVX9UlmGvGh3f59ff7q7ika1XMne0XXTXE4VjZzi/joOZ9ocWAbqu
khIWJT/EK5HaJLMybUBE/b7/4CXD6iOjdYKn+VuVJRIkwdRdDo1HDDyxwqVgSyE9
83rpaMncyA0uFt9w4huqQBXCowAt+l2pdDnJ7gSlTe9EzFaiD9AS1VCKDucXjuqU
v0XmP4k1rXYkOWQ1SfgInw2Af8C+QAmzBbeZhEs9+iek1j8up0E=
=N3NM
-----END PGP SIGNATURE-----