1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="vfs_fileid.8">
6 <refentrytitle>vfs_fileid</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">4.7</refmiscinfo>
15 <refname>vfs_fileid</refname>
16 <refpurpose>Generates file_id structs with unique device id values for
17 cluster setups</refpurpose>
22 <command>vfs objects = fileid</command>
27 <title>DESCRIPTION</title>
29 <para>This VFS module is part of the
30 <citerefentry><refentrytitle>samba</refentrytitle>
31 <manvolnum>7</manvolnum></citerefentry>
34 <para>Samba uses file_id structs to uniquely identify files
35 for locking purpose. By default the file_id contains the device
36 and inode number returned by the <command>stat()</command> system call.
37 As the file_id is a unique identifier of a file, it must be the same
38 on all nodes in a cluster setup. This module overloads the
39 <command>SMB_VFS_FILE_ID_CREATE()</command> operation and
40 generates the device number based on the configured algorithm
41 (see the "fileid:algorithm" option).
47 <title>OPTIONS</title>
52 <term>fileid:algorithm = ALGORITHM</term>
54 <para>Available algorithms are <command>fsname</command>
55 and <command>fsid</command>. The default value is
56 <command>fsname</command>.
58 <para>The <command>fsname</command> algorithm generates
59 device id by hashing the kernel device name.
61 <para>The <command>fsid</command> algorithm generates
62 the device id from the <command>f_fsid</command> returned
63 from the <command>statfs()</command> syscall.
69 <term>fileid:mapping = ALGORITHM</term>
71 <para>This option is the legacy version of the
72 <command>fileid:algorithm</command> option, which was used in earlier
73 versions of fileid mapping feature in custom Samba 3.0 versions.
82 <title>EXAMPLES</title>
84 <para>Usage of the <command>fileid</command> module with the
85 <command>fsid</command> algorithm:</para>
88 <smbconfsection name="[global]"/>
89 <smbconfoption name="vfs objects">fileid</smbconfoption>
90 <smbconfoption name="fileid:algorithm">fsid</smbconfoption>
96 <title>VERSION</title>
98 <para>This man page is correct for version 3.2 of the Samba suite.
103 <title>AUTHOR</title>
105 <para>The original Samba software and related utilities
106 were created by Andrew Tridgell. Samba is now developed
107 by the Samba Team as an Open Source project similar
108 to the way the Linux kernel is developed.</para>