From 563a6c0a1a8bb76c42abffc3016cdf99588cba27 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 16 Jun 2003 18:31:20 +0000 Subject: Patch from metze to update VFS docs to include notes on multiple instances of the same VFS module (This used to be commit 32ef93d31c9e5bad290c9ac35ca59d8e5215811d) --- docs/docbook/projdoc/VFS.xml | 66 +++++++++++++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 23 deletions(-) (limited to 'docs') diff --git a/docs/docbook/projdoc/VFS.xml b/docs/docbook/projdoc/VFS.xml index 2ae1cfc9e0..531d46df59 100644 --- a/docs/docbook/projdoc/VFS.xml +++ b/docs/docbook/projdoc/VFS.xml @@ -2,9 +2,10 @@ &author.jelmer; &author.jht; - AlexanderBokovoy TimPotter - SimoSorce + SimoSorceoriginal vfs_skel README + AlexanderBokovoyoriginal vfs_netatalk docs + StefanMetzmacherUpdate for multiple modules Stackable VFS modules @@ -32,27 +33,46 @@ on different systems. They currently have been tested against GNU/Linux and IRI To use the VFS modules, create a share similar to the one below. The -important parameter is the vfs object parameter which must point to -the exact pathname of the shared library objects. For example, to log all access -to files and use a recycle bin: +important parameter is the vfs objects parameter where +you can list one or more VFS modules by name. For example, to log all access +to files and put deleted files in a recycle bin: [audit] - comment = Audited /data directory - path = /data - vfs object = /path/to/audit.so /path/to/recycle.so - writeable = yes - browseable = yes + comment = Audited /data directory + path = /data + vfs objects = audit recycle + writeable = yes + browseable = yes -The modules are used in the order they are specified. +The modules are used in the order in which they are specified. -Further documentation on writing VFS modules for Samba can be found in -the Samba Developers Guide. +Samba will attempt to load modules from the lib +directory in the root directory of the samba installation (usually +/usr/lib/samba or /usr/local/samba/lib +). + + + +Some modules can be used twice for the same share. +This can be done using a configuration similar to the one below. + + +[test] + comment = VFS TEST + path = /data + writeable = yes + browseable = yes + vfs objects = example:example1 example example:test + example1: parameter = 1 + example: parameter = 5 + test: parameter = 7 + @@ -82,7 +102,7 @@ the Samba Developers Guide. This module is identical with the audit module above except that it sends audit logs to both syslog as well as the smbd log file/s. The - loglevel for this module is set in the smb.conf file. + loglevel for this module is set in the smb.conf file. @@ -126,46 +146,46 @@ the Samba Developers Guide. will be intercepted and files moved to the recycle directory instead of being deleted. - + Supported options: - vfs_recycle_bin:repository + recycle:repository FIXME - vfs_recycle_bin:keeptree + recycle:keeptree FIXME - vfs_recycle_bin:versions + recycle:versions FIXME - vfs_recycle_bin:touch + recycle:touch FIXME - vfs_recycle_bin:maxsize + recycle:maxsize FIXME - vfs_recycle_bin:exclude + recycle:exclude FIXME - vfs_recycle_bin:exclude_dir + recycle:exclude_dir FIXME - vfs_recycle_bin:noversions + recycle:noversions FIXME -- cgit