View Single Post
Old 09-11-2010, 10:12 AM   #15
jibanes
Member
jibanes began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Feb 2007
Device: Sony Reader
Quote:
Originally Posted by kartu View Post
Sony firmware is accessing SD cards using it's own function calls, without mounting it. The code is buggy. "mount" option uses linux mount (no bugs reported afaik) but since Reader cannot go into power saving mode with mounted SD card, mount/umount is done every time you change folder. (you also obviously lose ability to open books directly from SD)
We should have an option then to "rescan (now) SD/MC using mount", that is, to (linux) mount the filesystem, then create the index (stored in a BDB file for instance, or just flat xml file) and then we would be able to rescan the card, bypassing this limitation, which is precisely what is probably causing me trouble right now. I think sony is using proprietary calls rather than the (linux) mount do avoid concurrency, that is, mounting the filesystem in two different threads. Because the filesystem isn't meant to be mounted twice at the same time (it would trash/corrupt its metadata, and likely the VFS cache), that's why they're using syscalls, where they can, in the kernel or kernel module, use mutex(es) or semaphores to prevent, per say, concurrency in writting the same file from two different threads or similar actions.

Would this option require a lot of work: "rescan (now) SD/MC using mount"?
This would be of tremendous help.


Jerome
jibanes is offline   Reply With Quote