1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 >Stackable VFS modules</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 TITLE="SAMBA Project Documentation"
11 HREF="samba-howto-collection.html"><LINK
13 TITLE="Advanced Configuration"
14 HREF="optional.html"><LINK
16 TITLE="Hosting a Microsoft Distributed File System tree on Samba"
17 HREF="msdfs.html"><LINK
19 TITLE="Securing Samba"
20 HREF="securing-samba.html"></HEAD
31 SUMMARY="Header navigation table"
40 >SAMBA Project Documentation</TH
62 HREF="securing-samba.html"
77 >Chapter 20. Stackable VFS modules</H1
84 >20.1. Introduction and configuration</A
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 They currently have been tested 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 objects. For example, to log all access
102 to files and use a recycle bin:
105 CLASS="PROGRAMLISTING"
107 comment = Audited /data directory
109 vfs object = /path/to/audit.so /path/to/recycle.so
111 browseable = yes</PRE
114 >The modules are used in the order they are specified.</P
116 >Further documentation on writing VFS modules for Samba can be found in
117 the Samba Developers Guide.</P
125 >20.2. Included modules</A
136 >A simple module to audit file access to the syslog
137 facility. The following operations are logged:
149 >connect/disconnect</TD
153 >directory opens/create/remove</TD
157 >file open/close/rename/unlink/chmod</TD
174 >A recycle-bin like modules. When used any unlink call
175 will be intercepted and files moved to the recycle
176 directory instead of beeing deleted.</P
185 >vfs_recycle_bin:repository</DT
191 >vfs_recycle_bin:keeptree</DT
197 >vfs_recycle_bin:versions</DT
203 >vfs_recycle_bin:touch</DT
209 >vfs_recycle_bin:maxsize</DT
215 >vfs_recycle_bin:exclude</DT
221 >vfs_recycle_bin:exclude_dir</DT
227 >vfs_recycle_bin:noversions</DT
245 >A netatalk module, that will ease co-existence of samba and
246 netatalk file sharing services.</P
248 >Advantages compared to the old netatalk module:
256 >it doesn't care about creating of .AppleDouble forks, just keeps ones in sync</TD
260 >if share in smb.conf doesn't contain .AppleDouble item in hide or veto list, it will be added automatically</TD
275 >20.3. VFS modules available elsewhere</A
278 >This section contains a listing of various other VFS modules that
279 have been posted but don't currently reside in the Samba CVS
280 tree for one reason ot another (e.g. it is easy for the maintainer
281 to have his or her own CVS tree).</P
283 >No statemets about the stability or functionality any module
284 should be implied due to its presence here.</P
291 >20.3.1. DatabaseFS</A
295 HREF="http://www.css.tayloru.edu/~elorimer/databasefs/index.php"
297 >http://www.css.tayloru.edu/~elorimer/databasefs/index.php</A
301 HREF="mailto:elorimer@css.tayloru.edu"
306 >I have created a VFS module which implements a fairly complete read-only
307 filesystem. It presents information from a database as a filesystem in
308 a modular and generic way to allow different databases to be used
309 (originally designed for organizing MP3s under directories such as
310 "Artists," "Song Keywords," etc... I have since applied it to a student
311 roster database very easily). The directory structure is stored in the
312 database itself and the module makes no assumptions about the database
313 structure beyond the table it requires to run.</P
315 >Any feedback would be appreciated: comments, suggestions, patches,
316 etc... If nothing else, hopefully it might prove useful for someone
317 else who wishes to create a virtual filesystem.</P
329 HREF="http://www.openantivirus.org/"
331 >http://www.openantivirus.org/</A
334 >samba-vscan is a proof-of-concept module for Samba, which
335 uses the VFS (virtual file system) features of Samba 2.2.x/3.0
336 alphaX. Of couse, Samba has to be compiled with VFS support.
337 samba-vscan supports various virus scanners and is maintained
347 SUMMARY="Footer navigation table"
367 HREF="samba-howto-collection.html"
376 HREF="securing-samba.html"
386 >Hosting a Microsoft Distributed File System tree on Samba</TD