source: vendor/current/docs/manpages/vfs_fileid.8

Last change on this file was 989, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.7

File size: 2.9 KB
Line 
1'\" t
2.\" Title: vfs_fileid
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5.\" Date: 10/25/2016
6.\" Manual: System Administration tools
7.\" Source: Samba 4.4
8.\" Language: English
9.\"
10.TH "VFS_FILEID" "8" "10/25/2016" "Samba 4\&.4" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
30.SH "NAME"
31vfs_fileid \- Generates file_id structs with unique device id values for cluster setups
32.SH "SYNOPSIS"
33.HP \w'\ 'u
34vfs objects = fileid
35.SH "DESCRIPTION"
36.PP
37This VFS module is part of the
38\fBsamba\fR(7)
39suite\&.
40.PP
41Samba uses file_id structs to uniquely identify files for locking purpose\&. By default the file_id contains the device and inode number returned by the
42stat()
43system call\&. As the file_id is a unique identifier of a file, it must be the same on all nodes in a cluster setup\&. This module overloads the
44SMB_VFS_FILE_ID_CREATE()
45operation and generates the device number based on the configured algorithm (see the "fileid:algorithm" option)\&.
46.SH "OPTIONS"
47.PP
48fileid:algorithm = ALGORITHM
49.RS 4
50Available algorithms are
51fsname
52and
53fsid\&. The default value is
54fsname\&.
55.sp
56The
57fsname
58algorithm generates device id by hashing the kernel device name\&.
59.sp
60The
61fsid
62algorithm generates the device id from the
63f_fsid
64returned from the
65statfs()
66syscall\&.
67.RE
68.PP
69fileid:mapping = ALGORITHM
70.RS 4
71This option is the legacy version of the
72fileid:algorithm
73option, which was used in earlier versions of fileid mapping feature in custom Samba 3\&.0 versions\&.
74.RE
75.SH "EXAMPLES"
76.PP
77Usage of the
78fileid
79module with the
80fsid
81algorithm:
82.sp
83.if n \{\
84.RS 4
85.\}
86.nf
87 \fI[global]\fR
88 \m[blue]\fBvfs objects = fileid\fR\m[]
89 \m[blue]\fBfileid:algorithm = fsid\fR\m[]
90.fi
91.if n \{\
92.RE
93.\}
94.SH "VERSION"
95.PP
96This man page is correct for version 3\&.2 of the Samba suite\&.
97.SH "AUTHOR"
98.PP
99The 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\&.
Note: See TracBrowser for help on using the repository browser.