Rockbox General > Rockbox General Discussion

How is dircache supposed to work?

<< < (2/4) > >>

paddlaren:

--- Quote from: Llorean on October 10, 2006, 04:46:52 PM ---if you just shut down, and then boot up again, without booting any other firmwares or going into USB mode, it shouldn't have to update.

--- End quote ---

This means that the device actualy can sense if USB was connected or not, and the expected behavior is pretty much like I ask for.

I use ther X5 dual-boot firmware. Maby it works better with the more official Rockbox firmware.

Llorean:
Note that I've said "should" as it may not be working properly, but try it with the official version and see if Dircache scans every boot, or only after USB connections.

Lear:

--- Quote from: paddlaren on October 11, 2006, 01:09:30 AM ---Isn't it my iAudio that have misunderstood? The device scans the disk every time I boot no matter whether I like it or not  :)

This is exactly why I ask the question. If this is an error I will file a bug.

--- End quote ---

This is not a bug, as far as I know. It always scans the disk after every boot and after every USB disconnect, as the disk contents may have changed. Apparently there is no easy way to detect this.

LinusN:
It always scans the disk, as there is no way of knowing if the contents have changed or not. It will still save a lot of battery in most cases. If you don't like it, turn it off.

sadur:
Hi.
I know that this post is very old, but I have a similar issue.
On my iPod 5.5G 80GB I have thousands of music files and with a similar directory structure I have thousands of playlists files. If I activate dircache it takes several seconds after the rockbox menu appears on *every* boot until the disk stops its activity checking if there are any modified files to update into the dircache. After that, thanks to the dircache feature, navigating the file-tree structure goes smoothly. If I begin to navigate the file structure before the dircache stops and play some album, the playback delays several seconds, and all slows down.
If I deactivate the dircache feature the player is available immediately, but the navigation and the load a playlists slows down noticeably.
In my case I update my files from time to time. Is there a way to activate dircache initially and then only update it manually on-demand if I update my files? Is the dircache a file that can be loaded into memory without checking anything, or is it build from scratch on every boot.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version