Using vfstest (Was: VFS configure/Makefile howto?)
sean at troublemakerstudios.com
Mon Sep 19 17:45:01 GMT 2005
Thanks for the feedback James. Is there documentation on using vfstest?
I am particularly interested in how vfstest reads .conf files, as I have
parameters I want to pass to my vfs module. I'm using a test.conf that
contains the following:
vfs objects = mddb
mddb:logfile = /tmp/mddblog.txt
mddb:prefix = %u|%I
mddb:success = all
mddb:failure = all
My module, at the moment, is mostly a copy of the full_audit VFS module.
I've changed it to use a dedicated file instead of the syslog.. I'd like
to be able to load the config file, load mddb in vfstest, and have my
VFS module receive the proper options, and then log commands
appropriately. Is this the correct way of doing this in vfstest? Also,
should vfstest automatically load and connect to the module based on the
From: James Peach [mailto:jpeach at samba.org]
Sent: Saturday, September 17, 2005 2:12 AM
To: Sean Dunn
Cc: samba-technical at lists.samba.org
Subject: Re: VFS configure/Makefile howto?
On Fri, 2005-09-16 at 15:59 -0500, Sean Dunn wrote:
> This is my first post to the list. I'd like to know if there is a
> webpage/FAQ that describes the process and requirements for creating a
> valid configure.in and Makefile.in for compiling shared VFS modules.
> This isn't difficult to do if I keep my module in the samba source
> but I would like to keep it separated..
Unfortunately it is often painful to maintain a VFS module out of tree.
Although the VFS interface is versioned, it's easy to end up with a
module that calls atbitrary internal APIs that will change without
I'd recommend maintaining your module as a patch against the Samba tree
and using the Samba build system to build it. Once you start using
quilt, you'll find it quite easy to maintain a bunch of patches against
the main source.
James Peach | jpeach at samba.org
More information about the samba-technical