[Fontconfig] Re: Status about fontconfig CVS regarding
cache handling
Mike FABIAN
mfabian at suse.de
Mon Feb 20 06:45:40 PST 2006
Frederic Crozat <fcrozat at mandriva.com> さんは書きました:
> Le samedi 18 février 2006 à 13:23 -0500, Patrick Lam a écrit :
>> Mike FABIAN wrote:
>> > is true and it returns with FcFalse;
>>
>> I've fixed the underlying problem which gets triggered by this too.
>
> Ok, I can confirm that the crash is fixed.
Yes, I can also confirm that.
> The cache being always updated by fc-cache if old version (but with
> correct magic) in present in the font directory is still there but I'm
> not sure we can fix it with something more than --really-force (which is
> fixing the issue). WDYT ?
How do you reproduce that?
I think I cannot reproduce it. If I copy a cache file from
/var/cache/fontconfig to the appropriate font directory, rename it to
fonts.cache-2 and then touch that font directory, "fc-cache -v"
correctly removes the cache file in the directory and
updates the cache file in /var/cache/fontconfig.
I tried to make the font directory readonly by adding a
font directory to a readonly partition to make it impossible
for fontconfig to remove the cache file in the directory.
But even in that case it seems to work correctly:
root at magellan:/var/cache/fontconfig# grep local/test-fonts *
バイナリー・ファイルfac913a0a223655c1409661e791e1833.cache-2は一致しました
root at magellan:/var/cache/fontconfig# cp fac913a0a223655c1409661e791e1833.cache-2 /local/test-fonts/fonts.cache-2
root at magellan:/var/cache/fontconfig# touch /local/test-fonts
root at magellan:/var/cache/fontconfig# mount -o remount,ro /local
root at magellan:/var/cache/fontconfig# mount | grep hda2
/dev/hda2 on /local type ext3 (ro)
root at magellan:/var/cache/fontconfig#
root at magellan:/var/cache/fontconfig# ll --full -d /local/test-fonts
drwxr-xr-x 2 root root 4096 2006-02-20 15:37:36.000000000 +0100 /local/test-fonts/
root at magellan:/var/cache/fontconfig# ls --full /local/test-fonts/fonts.cache-2 /var/cache/fontconfig/fac913a0a223655c1409661e791e1833.cache-2
-rw-r--r-- 1 root root 45056 2006-02-20 15:28:30.000000000 +0100 /local/test-fonts/fonts.cache-2
-rw-r--r-- 1 root root 45056 2006-02-20 15:36:29.000000000 +0100 /var/cache/fontconfig/fac913a0a223655c1409661e791e1833.cache-2
root at magellan:/var/cache/fontconfig# fc-cache -v /local/test-fonts
fc-cache: "/local/test-fonts": caching, 20 fonts, 0 dirs
fc-cache: succeeded
root at magellan:/var/cache/fontconfig# fc-cache -v /local/test-fonts
fc-cache: "/local/test-fonts": skipping, 20 fonts, 0 dirs
fc-cache: succeeded
root at magellan:/var/cache/fontconfig#
root at magellan:/var/cache/fontconfig# ls --full -d /local/test-fonts
drwxr-xr-x 2 root root 4096 2006-02-20 15:37:36.000000000 +0100 /local/test-fonts/
root at magellan:/var/cache/fontconfig# ls --full /local/test-fonts/fonts.cache-2 /var/cache/fontconfig/fac913a0a223655c1409661e791e1833.cache-2
-rw-r--r-- 1 root root 45056 2006-02-20 15:28:30.000000000 +0100 /local/test-fonts/fonts.cache-2
-rw-r--r-- 1 root root 45056 2006-02-20 15:38:41.000000000 +0100 /var/cache/fontconfig/fac913a0a223655c1409661e791e1833.cache-2
root at magellan:/var/cache/fontconfig#
--
Mike FABIAN <mfabian at suse.de> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
More information about the Fontconfig
mailing list