Rockbox General > Rockbox General Discussion

How is dircache supposed to work?

(1/4) > >>

paddlaren:
Hi!

I used to have the dir-cache enabeled to save the battery some. I never noticed it used to update regulary. This was a daily-build from may 2006 I gues (not very certain).

After an update to a recent daily-build (I tried the one today as well) it seems that the dircach scans the disk everytime I switch the device on. This is definitly not what I needed.

Now I wonder how the dircache is supposed to work. Is it supposed to update every time I switch on, after USB-connection, manually? Is the information stored on file to be reused if disk not changed? Does it reflect the compleet directory-structure of the disk and is there any limitations to fit in memory?

I gues that a well designed dircache can save some batterytime. It must be possible to design a smart solution to make the most of the batteries.

By the way, I have an iAudio X5 if that matters.

// Erik

Llorean:
Dircache has no way to know if the disk has changed after a USB connection without scanning, so scanning is necessary after a connection for it to continue functioning.

paddlaren:
This is to bad. I think that updating only after an USB-connection whould be great.

I have reason to belive that the original X5 software detects that the USB has been connected, at least it behaves different during boot afterwards.

If it wheren't for that Rockbox stores thing on disk (playlists, bookmarks etc) it should be possible to detect diskchanges in the FAT-table for devices with FAT and let it trig the disk-scan.

Llorean:
You seem to have misunerstood, 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.

paddlaren:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version