Rockbox General > Rockbox General Discussion
Directory cache rebuilds for no obvious reason
Multiplex:
Loking at the recent comits it seems that there may have been an issue that has been looked at - must do an update (except that I let my player at work ...)
"Don't get the dircache size while dircache is still initializing. If done during shutdown, it will force a foreground scan on next boot. "
Lear:
--- Quote from: squidkidd on October 07, 2007, 01:47:27 PM ---Just updated and it seems to have completely stopped all of the seemingly unnecessary scans, and it has also fixed my broken dircache discussed here:
http://forums.rockbox.org/index.php?topic=13071.0
--- End quote ---
That's strange. The problem there, at least the one reported by psycho_maniac, should be unrelated to the recent fix... It should only make a difference if you shut down before the background scan has finished. I'd imagine this isn't the normal usage pattern - unless the scanning takes a very long time for some reason.
Oh well, good to know it improved things, even if I don't quite understand why. :)
Llorean:
On 80gb iPods, I believe disk access may still be "slow" while the player's active (resume playback, for example) which might result in long rescans.
As well, many people "testing" this bug would turn on their player, check, turn off, turn on, check, to see the "every other" thing happen. And of course, since the foreground scan wasn't interrupted, it would finish.
squidkidd:
Well, not only have I yet to get a "scanning disk" since the update, but I have yet to have dircache be reported as "dircache initialized: No" when it should be yes, as it previously would do. Perhaps when rockbox was previously shutdown before a background scan could be completed, it would not work period upon next boot?
Regards,
Brian
EDIT:
Ok, seems Lear was right. I take back what I said about it fixing the other problem as well. After some practical use, I discovered that still on about every other boot, dircache becomes disabled (see http://forums.rockbox.org/index.php?topic=13071.0). If I turn the player on and off repeatedly, Rockbox will not scan disk, which is good. This is a result of the fix where if you turn the player off before it has time to build the dircache, it will not do a foreground scan on next boot. There is still some bug I guess causing dircache to disable, which may or may not have something to do the number of files on the player.
Navigation
[0] Message Index
[*] Previous page
Go to full version