VFS unlink and chmod not being called

Brad Sahr bsahr at macromedia.com
Wed Aug 30 19:53:15 GMT 2000


Not sure now what I was looking at before, but chmod IS being called
within the VFS.

Again, any thoughts about the VFS unlink would be appreciated.

Brad

> -----Original Message-----
> From: samba-technical-admin at us4.samba.org
> [mailto:samba-technical-admin at us4.samba.org]On Behalf Of Brad Sahr
> Sent: Wednesday, August 30, 2000 10:07 AM
> To: Samba Technical List
> Subject: VFS unlink and chmod not being called
> 
> 
> I thought I'd better add that the chmod() function within an
> installed VFS is not getting called either. I'm changing file
> permissions from MS Explorer on a Win2000 client.
> 
> If anyone has any thoughts on this and/or the unlink() situation
> below, please chime in.
> 
> Thanks,
> 
> Brad
> 
> > -----Original Message-----
> > From: samba-technical-admin at samba.org
> > [mailto:samba-technical-admin at samba.org]On Behalf Of Brad Sahr
> > Sent: Friday, August 25, 2000 6:26 PM
> > To: Samba Technical List
> > Subject: VFS unlink not being called
> > 
> > 
> > It looks like reply_unlink() in reply.c also bypasses
> > an installed VFS. Deleting a file on the VFS mediated
> > share goes through the following code segment which
> > does not call the VFS. It looks like if has_wild is
> > true, the VFS unlink operation will be called, but I 
> > haven't been able to do anything at the client to 
> > cause this to happen.
> > 
> > ** code segment from reply_unlink() in reply.c **
> >   if (!has_wild) {
> >     pstrcat(directory,"/");
> >     pstrcat(directory,mask);
> >     if (can_delete(directory,conn,dirtype) && !dos_unlink(directory))
> >       count++;
> >     if (!count)
> >       exists = vfs_file_exist(conn,directory,NULL);    
> >   } else {
> >   ...
> >   }
> > 
> > Would it be reasonable to replace the dos_unlink() call with
> > a call to the vfs_ops.unlink() as is done later in the code?
> > 
> > Brad
> > 
> > 
> 




More information about the samba-technical mailing list