1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 >Stackable VFS modules</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.77"><LINK
10 TITLE="SAMBA Project Documentation"
11 HREF="samba-howto-collection.html"><LINK
13 TITLE="Optional configuration"
14 HREF="optional.html"><LINK
16 TITLE="Passdb XML plugin"
17 HREF="pdb-xml.html"><LINK
19 TITLE="Storing Samba's User/Machine Account information in an LDAP Directory"
20 HREF="samba-ldap-howto.html"></HEAD
31 SUMMARY="Header navigation table"
40 >SAMBA Project Documentation</TH
62 HREF="samba-ldap-howto.html"
77 >Chapter 19. Stackable VFS modules</H1
85 >19.1. Introduction and configuration</H1
87 >Since samba 3.0, samba supports stackable VFS(Virtual File System) modules.
88 Samba passes each request to access the unix file system thru the loaded VFS modules.
89 This chapter covers all the modules that come with the samba source and references to
90 some external modules.</P
92 >You may have problems to compile these modules, as shared libraries are
93 compiled and linked in different ways on different systems.
94 I currently tested them against GNU/linux and IRIX.</P
96 >To use the VFS modules, create a share similar to the one below. The
97 important parameter is the <B
100 > parameter which must point to
101 the exact pathname of the shared library object. For example, to use audit.so:
104 CLASS="PROGRAMLISTING"
106 comment = Audited /data directory
108 vfs object = /path/to/audit.so
110 browseable = yes</PRE
113 >Further documentation on writing VFS modules for Samba can be found in
114 docs directory of the Samba source distribution.</P
123 >19.2. Included modules</H1
133 >A simple module to audit file access to the syslog
134 facility. The following operations are logged:
146 >connect/disconnect</TD
150 >directory opens/create/remove</TD
154 >file open/close/rename/unlink/chmod</TD
171 >A recycle-bin like modules. When used any unlink call
172 will be intercepted and files moved to the recycle
173 directory instead of beeing deleted.</P
182 >vfs_recycle_bin:repository</DT
188 >vfs_recycle_bin:keeptree</DT
194 >vfs_recycle_bin:versions</DT
200 >vfs_recycle_bin:touch</DT
206 >vfs_recycle_bin:maxsize</DT
212 >vfs_recycle_bin:exclude</DT
218 >vfs_recycle_bin:exclude_dir</DT
224 >vfs_recycle_bin:noversions</DT
240 >19.2.3. netatalk</H2
242 >A netatalk module, that will ease co-existence of samba and
243 netatalk file sharing services.</P
245 >Advantages compared to the old netatalk module:
253 >it doesn't care about creating of .AppleDouble forks, just keeps ones in sync</TD
257 >if share in smb.conf doesn't contain .AppleDouble item in hide or veto list, it will be added automatically</TD
273 >19.3. VFS modules available elsewhere</H1
275 >This section contains a listing of various other VFS modules that
276 have been posted but don't currently reside in the Samba CVS
277 tree for one reason ot another (e.g. it is easy for the maintainer
278 to have his or her own CVS tree).</P
280 >No statemets about the stability or functionality any module
281 should be implied due to its presence here.</P
289 >19.3.1. DatabaseFS</H2
292 HREF="http://www.css.tayloru.edu/~elorimer/databasefs/index.php"
294 >http://www.css.tayloru.edu/~elorimer/databasefs/index.php</A
298 HREF="mailto:elorimer@css.tayloru.edu"
303 >I have created a VFS module which implements a fairly complete read-only
304 filesystem. It presents information from a database as a filesystem in
305 a modular and generic way to allow different databases to be used
306 (originally designed for organizing MP3s under directories such as
307 "Artists," "Song Keywords," etc... I have since applied it to a student
308 roster database very easily). The directory structure is stored in the
309 database itself and the module makes no assumptions about the database
310 structure beyond the table it requires to run.</P
312 >Any feedback would be appreciated: comments, suggestions, patches,
313 etc... If nothing else, hopefully it might prove useful for someone
314 else who wishes to create a virtual filesystem.</P
326 HREF="http://www.openantivirus.org/"
328 >http://www.openantivirus.org/</A
331 >samba-vscan is a proof-of-concept module for Samba, which
332 uses the VFS (virtual file system) features of Samba 2.2.x/3.0
333 alphaX. Of couse, Samba has to be compiled with VFS support.
334 samba-vscan supports various virus scanners and is maintained
344 SUMMARY="Footer navigation table"
364 HREF="samba-howto-collection.html"
373 HREF="samba-ldap-howto.html"
383 >Passdb XML plugin</TD
397 >Storing Samba's User/Machine Account information in an LDAP Directory</TD