Using the xattr tdb VFS Module: Difference between revisions

From SambaWiki
(Added new documentation about xattr_tdb.)
 
(add unsafe to vfs_xattr_tdb warning)
 
Line 7: Line 7:
{{Imbox
{{Imbox
| type = warning
| type = warning
| text = Storing extended attributes in a TDB file is inefficient and does not scale. Do not use this module in production.
| text = Storing extended attributes in a TDB file is inefficient, unsafe (unless absolutely all access is via Samba) and does not scale. Do not use this module in production.
}}
}}



Latest revision as of 18:30, 28 February 2020

Introduction

The xattr_tdb Virtual File System (VFS) module stores extended attributes in a Trivial Database (TDB) file. This enables you to use extended attributes on operating systems or file systems that do not support extended attributes.

You can use this module with other VFS modules, such as acl_xattr or streams_xattr, that store information in extended attributes.



Enabling the xattr_tdb Module

You can enable the xattr_module module either globally in the the [global] section or for individual shares in the share's section. To enable the module:

  • Edit your smb.conf file. Depending on where to enable the module, add the following entry either to the [global] or to the share's section:
vfs objects = xattr_tdb
  • Optionally, set the path to the TDB file. For example:
xattr_tdb:file = /usr/local/samba/var/locks/xattr.tdb
  • Reload the Samba configuration:
# smbcontrol all reload-config



Additional Resources

For additional information, see the vfs_xattr_tdb man page.