File caching on Symbian 9.1

Login to reply to this topic.
Mon, 2007-12-17 12:45
Joined: 2004-12-09
Forum posts: 78

Hi
I wanted to know if we can turn off the File Caching on Symbian 9.1 .... any suggestions on this scenario " when we try to read the file list from SD card at that time is the File list cached into the memory " I am interested in knowing this as I am going to access the File list on teh SD card pretty short intervals of say 25 milliseconds, so if the file list is cached when the FAT is read from the memory card I wont be able to get the latest list . Any Clue ??????

Girish


Mon, 2007-12-17 14:59
Joined: 2004-11-29
Forum posts: 1232
Re: File caching on Symbian 9.1

You are going to poll the file list of the SD card every 25 ms?

Why?

SD cards are slow... I kind-of doubt you will be able to get the file list in just 25 ms, at least if it is a big memory card.

What is it you are trying to do? It sounds like there is a better solution then polling the SD card every 25 ms....
polling like this would also most likely drain your batteries a lot faster then needed..

Why can't you use any of the file system notifications?
There is an API to tell the file system to give you an event as soon as a file is created or deleted in a specific folder, and can in that way maintain a current list of the files on the SD card.

Mon, 2007-12-17 15:20
Joined: 2004-12-09
Forum posts: 78
Re: File caching on Symbian 9.1

Hi Thanks for reply
ok I have an external device connected to this SD card and this device writes on this sd card through an interface .....so when the symbian phone (in our case) tries to get the latest files on this sd card which are being updated all the time through a diffferent interface ... it might give the file list in the cache as the list might be cached there. About the System notifications my concern is about to turn off file caching as for example the Symbian API RFs has something called RFs::Get Dir which interacts with the PDD of SD card . Here there might be a logical or a physical cache to read write data from the SD card.
May I know which API you are mentioning ?

Mon, 2007-12-17 15:52
Joined: 2004-11-29
Forum posts: 1232
Re: File caching on Symbian 9.1

Ah, I see now what you mean, and that you really would have to turn off any cacheing.

The notification API I was thinking about will not help you then. (also part of RFs).
This because I expect the notification only works for files created and deleted through symbian, and what you do here is modify it on a much lower level.

Since you are not using a standard SD card, probably this was not a use case that the symbian engineers were considering when they designed the system...

I'd suggest you write your question here: http://developer.symbian.com/forum/forum.jspa?forumID=4&start=0 and state your usecase where you have special SD card hardware.
There might be more problems then just the cacheing.

Mon, 2007-12-17 16:01
Joined: 2004-12-09
Forum posts: 78
Re: File caching on Symbian 9.1

Thanks I will try this Symbian forum you suggested as this is a very low level query .

  • Login to reply to this topic.