Jukebox VFS module almost finished :-)

Andreas Lund floyd at atc.no
Sat Mar 23 10:51:03 GMT 2002


Sat, 23 Mar 2002 08:53:42 -0600, John Malmberg <wb8tyw at qsl.net> wrote:
> Andreas Lund wrote:
> > This module is coming along very well, the module uses mysql for caching
> > directory contents so clients can browse the media without the changer
> > having
> > to work overtime. And it's sooo close to working!
> 
> This is a possible solution to the shelved file system issue.  Note that 
>   it requires more space.  In addition to caching the directory 
> contents, can you look into caching the first part of the file so the 
> icons will be present?

Presently I'm only caching directory (stat) information and not file contents,
but caching file content is a logical next step. I'd have to getter at C first
though, I only started learning it a few weeks ago and file IO is a bit more
complicated than simply returning a directory or a stat buffer :-/

Another thing, I wouldn't store file contents in a database. I'd rather
maintain a cache area and keep a database record of those files.


> > However if I tell the truth and have jukebox_stat() return -1 when
> > desktop.ini
> > doesn't exist, then the client refuses to show any files at all!
> 
> The file desktop.ini does not need to exist, so returning that it does 
> not exist should not cause your directory not to be displayed.

That's what I thought too, I must be overlooking something here :-/


> Have you been following the shelved file thread?

No, not really, I thought it was about special file attributes. I'll have a
look at it if you think it's relevant to what I'm trying to do. I don't think
I'll be able to provide much valuable input though :-)

 
> How are you dealing with the Windows Explorer wanting to open files to 
> display their icons?

So far, not at all. 

My media only has zip files on them so I haven't really given the issue any
serious thought. Partial caching is slightly more complicated so I won't be
attempting that any time soon, also I doubt I'll be able to produce fast
enough code. I'm already having difficulties coping with the hailstorm of
requests when the client wants to look for desktop.ini in 500 slots... *shakes
fist at MS*

I'll post the source once I get it to work, so that someone with more
experience can clean it up if they want to ;o)


-Andreas.




More information about the samba-technical mailing list