source: vendor/3.6.9/docs/manpages/vfs_prealloc.8

Last change on this file was 746, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated vendor to 3.6.9

File size: 2.7 KB
Line 
1'\" t
2.\" Title: vfs_prealloc
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 10/29/2012
6.\" Manual: System Administration tools
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "VFS_PREALLOC" "8" "10/29/2012" "Samba 3\&.6" "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_prealloc \- preallocate matching files to a predetermined size
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25vfs objects = prealloc
26.SH "DESCRIPTION"
27.PP
28This VFS module is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32The
33vfs_prealloc
34VFS module preallocates files to a specified size each time a new file is created\&. This is useful in environments where files are of a predetermined size will be written to a disk subsystem where extending file allocations is expensive\&.
35.PP
36This module is stackable\&.
37.SH "OPTIONS"
38.PP
39prealloc:EXT = BYTES
40.RS 4
41Preallocate all files with the extension EXT to the size specified by BYTES\&.
42.sp
43The following suffixes may be applied to BYTES:
44.sp
45.RS 4
46.ie n \{\
47\h'-04'\(bu\h'+03'\c
48.\}
49.el \{\
50.sp -1
51.IP \(bu 2.3
52.\}
53K
54\- BYTES is a number of kilobytes
55.RE
56.sp
57.RS 4
58.ie n \{\
59\h'-04'\(bu\h'+03'\c
60.\}
61.el \{\
62.sp -1
63.IP \(bu 2.3
64.\}
65M
66\- BYTES is a number of megabytes
67.RE
68.sp
69.RS 4
70.ie n \{\
71\h'-04'\(bu\h'+03'\c
72.\}
73.el \{\
74.sp -1
75.IP \(bu 2.3
76.\}
77G
78\- BYTES is a number of gigabytes
79.RE
80.sp
81.RE
82.RE
83.SH "EXAMPLES"
84.PP
85A process writes TIFF files to a Samba share, and the is known these files will almost always be around 4 megabytes (4194304 bytes):
86.sp
87.if n \{\
88.RS 4
89.\}
90.nf
91 \fI[frames]\fR
92 \m[blue]\fBpath = /data/frames\fR\m[]
93 \m[blue]\fBvfs objects = prealloc\fR\m[]
94 \m[blue]\fBprealloc:tiff = 4M\fR\m[]
95.fi
96.if n \{\
97.RE
98.\}
99.SH "CAVEATS"
100.PP
101vfs_prealloc
102is not supported on all platforms and filesystems\&. Currently only XFS filesystems on Linux and IRIX are supported\&.
103.SH "VERSION"
104.PP
105This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
106.SH "AUTHOR"
107.PP
108The 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.