Jukebox VFS module almost finished :-)

Andreas Lund floyd at atc.no
Sat Mar 23 11:26:02 GMT 2002


Sat, 23 Mar 2002 09:52:06 -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!
> > 
> > But... I get hundreds, nay thousands of requests for "desktop.ini". Now,
> > if I
> > just return a "fake" stat buffer saying the file is here, everything
> > works,
> > but very slowly since the client will then always follow up by trying to
> > open
> > the non-existing file a few times before moving on.
> > 
> > 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!
> 
> Are you sure that you are setting errno correctly?

err... no.
*blush*


> You could be passing back that the jukebox_stat() failed because of a 
> non-existant directory.

Now the log says

[2002/03/23 21:05:16, 3] smbd/reply.c:reply_getatr(460)
  stat of My Directory/DESKTOP.INI failed (No such file or directory)
[2002/03/23 21:05:16, 3] smbd/error.c:error_packet(91)
  error string = No such file or directory
[2002/03/23 21:05:16, 3] smbd/error.c:error_packet(121)
  error packet at smbd/reply.c(473) cmd=8 (SMBgetatr) eclass=1 ecode=2
[2002/03/23 21:05:16, 5] lib/util.c:show_msg(271)
  size=35
  smb_com=0x8
  smb_rcls=1
  smb_reh=0
  smb_err=2
  smb_flg=128
  smb_flg2=34817

...and the directory still shows up with no files in it. I need a break...


-Andreas.




More information about the samba-technical mailing list