| 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: 03/06/2011
|
|---|
| 6 | .\" Manual: System Administration tools
|
|---|
| 7 | .\" Source: Samba 3.5
|
|---|
| 8 | .\" Language: English
|
|---|
| 9 | .\"
|
|---|
| 10 | .TH "VFS_FILEID" "8" "03/06/2011" "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"
|
|---|
| 22 | vfs_fileid \- Generates file_id structs with unique device id values for cluster setups
|
|---|
| 23 | .SH "SYNOPSIS"
|
|---|
| 24 | .HP \w'\ 'u
|
|---|
| 25 | vfs objects = fileid
|
|---|
| 26 | .SH "DESCRIPTION"
|
|---|
| 27 | .PP
|
|---|
| 28 | This VFS module is part of the
|
|---|
| 29 | \fBsamba\fR(7)
|
|---|
| 30 | suite\&.
|
|---|
| 31 | .PP
|
|---|
| 32 | Samba 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
|
|---|
| 33 | stat()
|
|---|
| 34 | system 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
|
|---|
| 35 | SMB_VFS_FILE_ID_CREATE()
|
|---|
| 36 | operation and generates the device number based on the configured algorithm (see the "fileid:algorithm" option)\&.
|
|---|
| 37 | .SH "OPTIONS"
|
|---|
| 38 | .PP
|
|---|
| 39 | fileid:algorithm = ALGORITHM
|
|---|
| 40 | .RS 4
|
|---|
| 41 | Available algorithms are
|
|---|
| 42 | fsname
|
|---|
| 43 | and
|
|---|
| 44 | fsid\&. The default value is
|
|---|
| 45 | fsname\&.
|
|---|
| 46 | .sp
|
|---|
| 47 | The
|
|---|
| 48 | fsname
|
|---|
| 49 | algorithm generates device id by hashing the kernel device name\&.
|
|---|
| 50 | .sp
|
|---|
| 51 | The
|
|---|
| 52 | fsid
|
|---|
| 53 | algorithm generates the device id from the
|
|---|
| 54 | f_fsid
|
|---|
| 55 | returned from the
|
|---|
| 56 | statfs()
|
|---|
| 57 | syscall\&.
|
|---|
| 58 | .RE
|
|---|
| 59 | .PP
|
|---|
| 60 | fileid:mapping = ALGORITHM
|
|---|
| 61 | .RS 4
|
|---|
| 62 | This option is the legacy version of the
|
|---|
| 63 | fileid:algorithm
|
|---|
| 64 | option, which was used in earlier versions of fileid mapping feature in custom Samba 3\&.0 versions\&.
|
|---|
| 65 | .RE
|
|---|
| 66 | .SH "EXAMPLES"
|
|---|
| 67 | .PP
|
|---|
| 68 | Usage of the
|
|---|
| 69 | fileid
|
|---|
| 70 | module with the
|
|---|
| 71 | fsid
|
|---|
| 72 | algorithm:
|
|---|
| 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
|
|---|
| 87 | This man page is correct for version 3\&.2 of the Samba suite\&.
|
|---|
| 88 | .SH "AUTHOR"
|
|---|
| 89 | .PP
|
|---|
| 90 | 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\&.
|
|---|