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

Last change on this file was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 2.6 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: 02/19/2010
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "VFS_PREALLOC" "8" "02/19/2010" "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_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.sp
80.RE
81.RE
82.SH "EXAMPLES"
83.PP
84A process writes TIFF files to a Samba share, and the is known these files will almost always be around 4 megabytes (4194304 bytes):
85.sp
86.if n \{\
87.RS 4
88.\}
89.nf
90 \fI[frames]\fR
91 \m[blue]\fBpath = /data/frames\fR\m[]
92 \m[blue]\fBvfs objects = prealloc\fR\m[]
93 \m[blue]\fBprealloc:tiff = 4M\fR\m[]
94.fi
95.if n \{\
96.RE
97.\}
98.SH "CAVEATS"
99.PP
100vfs_prealloc
101is not supported on all platforms and filesystems\&. Currently only XFS filesystems on Linux and IRIX are supported\&.
102.SH "VERSION"
103.PP
104This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
105.SH "AUTHOR"
106.PP
107The 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.