Table of Contents
Since Samba-3, there is support for stackable VFS(Virtual File System) modules. Samba passes each request to access the unix file system thru the loaded VFS modules. This chapter covers all the modules that come with the samba source and references to some external modules.
If not supplied with your platform distribution binary Samba package you may have problems to compile these modules, as shared libraries are compiled and linked in different ways on different systems. They currently have been tested against GNU/Linux and IRIX.
[audit] comment = Audited /data directory path = /data vfs object = /path/to/audit.so /path/to/recycle.so writeable = yes browseable = yes
The modules are used in the order they are specified.
Further documentation on writing VFS modules for Samba can be found in the Samba Developers Guide.
share |
connect/disconnect |
directory opens/create/remove |
file open/close/rename/unlink/chmod |
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.
The logging information that will be written to the smbd log file is controlled by the log level parameter in smb.conf. The following information will be recorded:
This module was created to allow Roaming Profile files and directories to be set (on the Samba server under Unix) as read only. This module will if installed on the Profiles share will report to the client that the Profile files and directories are writable. This satisfies the client even though the files will never be overwritten as the client logs out or shuts down.
A recycle-bin like module. When used any unlink call will be intercepted and files moved to the recycle directory instead of being deleted.
FIXME
FIXME
FIXME
FIXME
FIXME
FIXME
FIXME
FIXME
A netatalk module, that will ease co-existence of samba and netatalk file sharing services.
it doesn't care about creating of .AppleDouble forks, just keeps them in sync |
if a share in smb.conf doesn't contain .AppleDouble item in hide or veto list, it will be added automatically |
This section contains a listing of various other VFS modules that have been posted but don't currently reside in the Samba CVS tree for one reason or another (e.g. it is easy for the maintainer to have his or her own CVS tree).
No statements about the stability or functionality of any module should be implied due to its presence here.
URL: http://www.css.tayloru.edu/~elorimer/databasefs/index.php
By Eric Lorimer.
I have created a VFS module which implements a fairly complete read-only filesystem. It presents information from a database as a filesystem in a modular and generic way to allow different databases to be used (originally designed for organizing MP3s under directories such as "Artists," "Song Keywords," etc... I have since applied it to a student roster database very easily). The directory structure is stored in the database itself and the module makes no assumptions about the database structure beyond the table it requires to run.
Any feedback would be appreciated: comments, suggestions, patches, etc... If nothing else, hopefully it might prove useful for someone else who wishes to create a virtual filesystem.
URL: http://www.openantivirus.org/
samba-vscan is a proof-of-concept module for Samba, which uses the VFS (virtual file system) features of Samba 2.2.x/3.0 alphaX. Of couse, Samba has to be compiled with VFS support. samba-vscan supports various virus scanners and is maintained by Rainer Link.