source: branches/samba-3.5.x/docs/manpages/vfs_fileid.8

Last change on this file was 773, checked in by Herwig Bauernfeind, 12 years ago

Samba Server 3.5: Update branch to 3.5.20

File size: 2.5 KB
Line 
1'\" t
2.\" Title: vfs_fileid
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 12/14/2012
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "VFS_FILEID" "8" "12/14/2012" "Samba 3\&.5" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22vfs_fileid \- Generates file_id structs with unique device id values for cluster setups
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25vfs objects = fileid
26.SH "DESCRIPTION"
27.PP
28This VFS module is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32Samba 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
33stat()
34system 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
35SMB_VFS_FILE_ID_CREATE()
36operation and generates the device number based on the configured algorithm (see the "fileid:algorithm" option)\&.
37.SH "OPTIONS"
38.PP
39fileid:algorithm = ALGORITHM
40.RS 4
41Available algorithms are
42fsname
43and
44fsid\&. The default value is
45fsname\&.
46.sp
47The
48fsname
49algorithm generates device id by hashing the kernel device name\&.
50.sp
51The
52fsid
53algorithm generates the device id from the
54f_fsid
55returned from the
56statfs()
57syscall\&.
58.RE
59.PP
60fileid:mapping = ALGORITHM
61.RS 4
62This option is the legacy version of the
63fileid:algorithm
64option, which was used in earlier versions of fileid mapping feature in custom Samba 3\&.0 versions\&.
65.RE
66.SH "EXAMPLES"
67.PP
68Usage of the
69fileid
70module with the
71fsid
72algorithm:
73.sp
74.if n \{\
75.RS 4
76.\}
77.nf
78 \fI[global]\fR
79 \m[blue]\fBvfs objects = fileid\fR\m[]
80 \m[blue]\fBfileid:algorithm = fsid\fR\m[]
81.fi
82.if n \{\
83.RE
84.\}
85.SH "VERSION"
86.PP
87This man page is correct for version 3\&.2 of the Samba suite\&.
88.SH "AUTHOR"
89.PP
90The 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.