Really virtual VFS

Andreas Lund floyd at atc.no
Sun Apr 7 14:14:01 GMT 2002


Sun, 7 Apr 2002 19:49:18 +0200, Kamil ?rot <camel at camel.cz> wrote:
> Hi all,
> 
>     I'm working on samba VFS module, that reads the directory structure
from
> database. But I can't fill dirent and DIR structures (results of
vfs_readdir
> and vfs_opendir) so, as samba likes it.
>     Can somebody show me the right way (or exaple :) ?

My jukebox module does this, the source can be found here:
http://home.atc.no/~floyd/jukebox/samba/

The DIR handle is simply a pointer which is passed to readdir() and
closedir(), the contents need only make sense to you. See the jukebox.readme
for more info on this.


-Andreas.





More information about the samba-technical mailing list