problems with VFS interface / audit.c example

Jeremy Allison jra at
Fri Apr 5 09:27:02 GMT 2002

On Fri, Apr 05, 2002 at 10:00:39AM -0500, Sean E. Millichamp wrote:
> I have Samba 2.2.3a on Red Hat Linux 7.2
> I was trying to use the example VFS module audit.c to actually audit the
> activity on a fileshare.  I recompiled Samba with --with-vfs and compiled 
> the audit.c module.
> When I put the "vfs object = /path/to/audit" line in a share (homes, in 
> this case) I got the following error messages:
> [2002/04/04 21:32:16, 0] smbd/vfs.c:vfs_init_custom(121) 
>   Error opening /usr/lib/samba/ /usr/lib/samba/ undefined symbol: default_vfs_ops 
> [2002/04/04 21:32:16, 0] smbd/vfs.c:vfs_init(284) 
>   vfs_init: vfs_init_custom failed 
> [2002/04/04 21:32:16, 0] smbd/service.c:make_connection(541) 
>   vfs_init failed for service sean 
> is 755 so I looked into the source and found default_vfs_ops in 
> the VFS example files and in the source/smbd/vfs.c file.  
> It looks like default_vfs_ops is used in a similar fashion in the three
> examples in examples/VFS so I am confused.  Are there any known problems 
> with the VFS interface?  It "looks right" to me but I'm not much of a C 
> programmer :).
> Does anyone have any suggestions on how I might fix this?

I've fixed up the VFS modules for the 2.2.4 release. I'm not sure
they worked correctly in 2.2.3a.

I'm intending to actively support the VFS modules going forward
(in that I've added new functionality such as the recycle bin
patch using the VFS for 2.2.4).


More information about the samba-technical mailing list