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

Last change on this file was 860, checked in by Silvan Scherrer, 11 years ago

Samba 3.6: updated vendor to latest version

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