| 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: 01/14/2010
|
|---|
| 6 | .\" Manual: System Administration tools
|
|---|
| 7 | .\" Source: Samba 3.3
|
|---|
| 8 | .\" Language: English
|
|---|
| 9 | .\"
|
|---|
| 10 | .TH "VFS_PREALLOC" "8" "01/14/2010" "Samba 3\&.3" "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_prealloc \- preallocate matching files to a predetermined size
|
|---|
| 23 | .SH "SYNOPSIS"
|
|---|
| 24 | .HP \w'\ 'u
|
|---|
| 25 | vfs objects = prealloc
|
|---|
| 26 | .SH "DESCRIPTION"
|
|---|
| 27 | .PP
|
|---|
| 28 | This VFS module is part of the
|
|---|
| 29 | \fBsamba\fR(7)
|
|---|
| 30 | suite\&.
|
|---|
| 31 | .PP
|
|---|
| 32 | The
|
|---|
| 33 | vfs_prealloc
|
|---|
| 34 | VFS 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
|
|---|
| 36 | This module is stackable\&.
|
|---|
| 37 | .SH "OPTIONS"
|
|---|
| 38 | .PP
|
|---|
| 39 | prealloc:EXT = BYTES
|
|---|
| 40 | .RS 4
|
|---|
| 41 | Preallocate all files with the extension EXT to the size specified by BYTES\&.
|
|---|
| 42 | .sp
|
|---|
| 43 | The 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 | .\}
|
|---|
| 53 | K
|
|---|
| 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 | .\}
|
|---|
| 65 | M
|
|---|
| 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 | .\}
|
|---|
| 77 | G
|
|---|
| 78 | \- BYTES is a number of gigabytes
|
|---|
| 79 | .sp
|
|---|
| 80 | .RE
|
|---|
| 81 | .RE
|
|---|
| 82 | .SH "EXAMPLES"
|
|---|
| 83 | .PP
|
|---|
| 84 | A 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
|
|---|
| 100 | vfs_prealloc
|
|---|
| 101 | is not supported on all platforms and filesystems\&. Currently only XFS filesystems on Linux and IRIX are supported\&.
|
|---|
| 102 | .SH "VERSION"
|
|---|
| 103 | .PP
|
|---|
| 104 | This man page is correct for version 3\&.0\&.25 of the Samba suite\&.
|
|---|
| 105 | .SH "AUTHOR"
|
|---|
| 106 | .PP
|
|---|
| 107 | 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\&.
|
|---|