View Single Post
barbieri's Avatar
Posts: 44 | Thanked: 21 times | Joined on Dec 2007 @ Recife, Brazil
#352
Originally Posted by krbvroc1 View Post
So how does this mediascanner thing work?

When 'watching' a folder how often does it scan/rescan? Is it configurable?

If I can somehow create a smbfs mount on my media card, will canola2 see it? And is there a way to tell it to cache the contents, but dont keep rescanning?

Also, what components have source code avail at this point and where can I find it?
Thanks
It should scan just when media is inserted. When Canola starts it triggers a consistency check, that basically does bunch of "stat(2)" calls to check if mtime (modification time) is the same, it can also delete (actually mark as deleted) files that went away and undelete (unmark) files that reappeared. It also adds new files.

As for smbfs, it should work, I don't see why not, we just use regular readdir(2) calls to walk directories.

About components with source code, we provide source of lightmediascanner (http://lms.garage.maemo.org/) and canolad, that uses this library and monitors media changes.