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="PAM Configuration for Centrally Managed Authentication"
19 TITLE="Hosting a Microsoft Distributed File System tree on Samba"
20 HREF="msdfs.html"></HEAD
31 SUMMARY="Header navigation table"
40 >SAMBA Project Documentation</TH
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
171 >20.2.2. extd_audit</A
174 >This module is identical with the <SPAN
180 > module above except
181 that it sends audit logs to both syslog as well as the smbd log file/s. The
182 loglevel for this module is set in the smb.conf file. At loglevel = 0, only file
183 and directory deletions and directory and file creations are logged. At loglevel = 1
184 file opens are renames and permission changes are logged , while at loglevel = 2 file
185 open and close calls are logged also.</P
196 >A recycle-bin like modules. When used any unlink call
197 will be intercepted and files moved to the recycle
198 directory instead of beeing deleted.</P
207 >vfs_recycle_bin:repository</DT
213 >vfs_recycle_bin:keeptree</DT
219 >vfs_recycle_bin:versions</DT
225 >vfs_recycle_bin:touch</DT
231 >vfs_recycle_bin:maxsize</DT
237 >vfs_recycle_bin:exclude</DT
243 >vfs_recycle_bin:exclude_dir</DT
249 >vfs_recycle_bin:noversions</DT
267 >A netatalk module, that will ease co-existence of samba and
268 netatalk file sharing services.</P
270 >Advantages compared to the old netatalk module:
278 >it doesn't care about creating of .AppleDouble forks, just keeps ones in sync</TD
282 >if share in smb.conf doesn't contain .AppleDouble item in hide or veto list, it will be added automatically</TD
297 >20.3. VFS modules available elsewhere</A
300 >This section contains a listing of various other VFS modules that
301 have been posted but don't currently reside in the Samba CVS
302 tree for one reason ot another (e.g. it is easy for the maintainer
303 to have his or her own CVS tree).</P
305 >No statemets about the stability or functionality any module
306 should be implied due to its presence here.</P
313 >20.3.1. DatabaseFS</A
317 HREF="http://www.css.tayloru.edu/~elorimer/databasefs/index.php"
319 >http://www.css.tayloru.edu/~elorimer/databasefs/index.php</A
323 HREF="mailto:elorimer@css.tayloru.edu"
328 >I have created a VFS module which implements a fairly complete read-only
329 filesystem. It presents information from a database as a filesystem in
330 a modular and generic way to allow different databases to be used
331 (originally designed for organizing MP3s under directories such as
332 "Artists," "Song Keywords," etc... I have since applied it to a student
333 roster database very easily). The directory structure is stored in the
334 database itself and the module makes no assumptions about the database
335 structure beyond the table it requires to run.</P
337 >Any feedback would be appreciated: comments, suggestions, patches,
338 etc... If nothing else, hopefully it might prove useful for someone
339 else who wishes to create a virtual filesystem.</P
351 HREF="http://www.openantivirus.org/"
353 >http://www.openantivirus.org/</A
356 >samba-vscan is a proof-of-concept module for Samba, which
357 uses the VFS (virtual file system) features of Samba 2.2.x/3.0
358 alphaX. Of couse, Samba has to be compiled with VFS support.
359 samba-vscan supports various virus scanners and is maintained
369 SUMMARY="Footer navigation table"
389 HREF="samba-howto-collection.html"
408 >PAM Configuration for Centrally Managed Authentication</TD
422 >Hosting a Microsoft Distributed File System tree on Samba</TD