Cache and FAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

I've recently stumbled upon problem with FAT filesystem updated by
Windowoze (SD card in my case) and fontconfig cache. Problem boils down
to the Windows not updating mtime of directory when file is added or
removed from directory, so fontconfig does not rebuild cache as it
checks only mtime and size of directory.

I'd like to fix this problem and submit patch upstream, but first I'd
like to ask for a correct way to fix it.

Ideas came to my mind so far are:

1) scan directory and subdirectories and use max(mtimes, ctimes) of all
   files as mtime of directory.

2) add "hash" field to directory cache which is hash of all
   subdirectories' hashes and directory contents.

Also this check should be conditional to avoid any overhead on more
conventional filesystems. is it a good idea to add boolean attribute for
<dir> entry in config?

-- 
  http://fossarchy.blogspot.com/

Attachment: pgpujDV8V5cXl.pgp
Description: PGP signature

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux