On 12/06/2009 07:34 PM, Mikhail Gusarov wrote: > 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. I let our win32 hackers respond before making a decision either way. Tor? > 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. Would be a PITA. > 2) add "hash" field to directory cache which is hash of all > subdirectories' hashes and directory contents. Isn't option #1 superior to this? And doesn't need a change to the cache format. > Also this check should be conditional to avoid any overhead on more > conventional filesystems. Sure. > is it a good idea to add boolean attribute for <dir> entry in config? No. Why? Please file a bug so we can track this. behdad _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig