vfs_streams_xattr - Man Page

Store alternate data streams in posix xattrs

Synopsis

vfs objects = streams_xattr

Description

This VFS module is part of the samba(7) suite​.

The vfs_streams_xattr enables storing of NTFS alternate data streams in the file system​. As a normal posix file system does not support the concept of multiple data streams per file, the streams_xattr module stores the data in posix extended attributes (xattrs)​. The name of these attributes by default is user​.DosStream​."ADS-NAME"​. The prefix "user​.DosStream​." can be changed with the module option streams_xattr:prefix, but be aware that this will also expose those ADS over the SMB extended attributes interface​.

The file system that is shared with this module enabled must support xattrs​.

Please note that most file systems have severe limitations on the size of xattrs​. So this module might work for applications like IE that stores small zone information in streams but will fail for applications that store serious amounts of data in ADSs​.

Options

streams_xattr:prefix = STRING

Name prefix used when storing an ADS in an xattr, defaults to user​.DosStream​.​. Changing this will also expose ADS over the SMB extended attributes interface​.

streams_xattr:store_stream_type = [yes|no]

Whether the xattr names for Alternate Data Streams of type "$DATA" are suffixed by the stream type string ":$DATA"​. The default is yes​.

streams_xattr:max xattrs per stream = NUM

On file systems where the size of a single xattr is more limited than the overall size of xattrs per inode, setting this parameter to a number between 2 and 16 will allow smbd to store larger streams than what fits into a single xattr​. For example Linux has a limit of 64kB per xattr, but XFS can store more than that per inode​.

The size of a single xattr is limited by the smb​.conf parameter smbd max xattr size

This is limited to 16 xattrs per alternate data stream​.

The default value is 1, compatible to the default behaviour before this feature was introduced​.

streams_xattr:ext_prefix = STRING

Name prefix used when storing overflow xattrs of a stream​. It defaults to streams_xattr:prefix with the string "Ext" appended​. If streams_xattr:prefix ends in a "​.", "Ext" is inserted before the "​."​.

The overflow xattrs will be named according to a pattern following "user​.DosStreamExt​.0​.ADS-NAME"​.

Examples

        [share]
	vfs objects = streams_xattr

Author

The original Samba software and related utilities were created by Andrew Tridgell​. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed​.

Info

10/01/2026 Samba 4.25.0 System Administration tools