dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Tagcache rebuild doesn't care of deleted directories

Re: Tagcache rebuild doesn't care of deleted directories

From: Gaetano Vocca <>
Date: Mon, 5 Jun 2006 23:50:35 +0200

I went on some little investigation about the problem below and, I will try to
give an explaination.
It is, probably, due to the fact that upon forcing a rebuild, the directories
present both on the disk and in the tagcache files are not processed again to
save time. In this case, if a directory is removed, the rebuild algorithm
fails noticing it because it checks if all the remaining directory pathnames
(one by one) are already cached (and they are) but doesn't verify that in
cache there is something "more" than on disk. Of course, by deleting the
tagcache files the incoherence disappears.

I tried uncommenting line 2427 in tagcache.c:
2426. case Q_FORCE_UPDATE:
 ----> remove_files();
                break ;
to remove files before rebuilding and, of course, it works.
What about changing the current option in the configuration menu to something
like "Update tag cache" and introducing a new "Force tag cache update" that
also removes current cache files?

Kind regards,

On Friday 02 June 2006 18:20, Gaetano Vocca wrote:
> Hi all,
> maybe I have found a little bug in the tagcache rebuild process.
> My audio file a re grouped by composer but tagcache rebuild seems not to
> care of deleted directories
> This is the procedure:
> 1) Rebuild tagcache
> 2) Reboot
> 3) Remove one directory containing all the files belonging to one composer
> 4) Rebuild cache
> 5) Reboot
> At the end of this process the composer is still present in the Tag menu
> but when audio files are selected for playing an error is issued.
> As soon as I have some time I will be happy to try investigating myself.
> Gaetano
> ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
Chiacchiera con i tuoi amici in tempo reale!*
Received on 2006-06-05

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy