Fix typo.
[import/samba-docs-svnimport.git] / manpages-3 / vfs_prealloc.8.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="vfs_prealloc.8">
4
5 <refmeta>
6         <refentrytitle>vfs_prealloc</refentrytitle>
7         <manvolnum>8</manvolnum>
8 </refmeta>
9
10
11 <refnamediv>
12         <refname>vfs_prealloc</refname>
13         <refpurpose>preallocate matching files to a predetermined size</refpurpose>
14 </refnamediv>
15
16 <refsynopsisdiv>
17         <cmdsynopsis>
18                 <command>vfs objects = prealloc</command>
19         </cmdsynopsis>
20 </refsynopsisdiv>
21
22 <refsect1>
23         <title>DESCRIPTION</title>
24
25         <para>This VFS module is part of the
26         <citerefentry><refentrytitle>samba</refentrytitle>
27         <manvolnum>7</manvolnum></citerefentry> suite.</para>
28
29         <para>The <command>vfs_prealloc</command> VFS module preallocates
30         files to a specified size each time a new file is created. This
31         is useful in environments where files are of a predetermined
32         size will be written to a disk subsystem where extending file
33         allocations is expensive.  </para>
34
35         <para>This module is stackable.</para>
36
37 </refsect1>
38
39
40 <refsect1>
41         <title>OPTIONS</title>
42
43         <variablelist>
44
45                 <varlistentry>
46                 <term>prealloc:EXT = BYTES</term>
47                 <listitem>
48                 <para>Preallocate all files with the extension EXT to
49                 the size specified by BYTES.
50                 </para>
51
52                 <para>The following suffixes may be applied to BYTES:</para>
53                 <itemizedlist>
54                 <listitem><para><command>K</command> - BYTES is a number of kilobytes</para></listitem>
55                 <listitem><para><command>M</command> - BYTES is a number of megabytes</para></listitem>
56                 <listitem><para><command>G</command> - BYTES is a number of gigabytes</para></listitem>
57                 </itemizedlist>
58
59                 </listitem>
60                 </varlistentry>
61
62         </variablelist>
63 </refsect1>
64
65 <refsect1>
66         <title>EXAMPLES</title>
67
68         <para>A process writes TIFF files to a Samba share, and the
69         is known these files will almost always be around 4 megabytes
70         (4194304 bytes): </para>
71
72 <programlisting>
73         <smbconfsection name="[frames]"/>
74         <smbconfoption name="path">/data/frames</smbconfoption>
75         <smbconfoption name="vfs objects">prealloc</smbconfoption>
76         <smbconfoption name="prealloc:tiff">4M</smbconfoption>
77 </programlisting>
78 </refsect1>
79
80 <refsect1>
81         <title>CAVEATS</title>
82         <para><command>vfs_prealloc</command> is not supported on all
83         platforms and filesystems. Currently only XFS filesystems on
84         Linux and IRIX are supported.
85         </para>
86 </refsect1>
87
88 <refsect1>
89         <title>VERSION</title>
90         <para>This man page is correct for version 3.0.25 of the Samba suite.
91         </para>
92 </refsect1>
93
94 <refsect1>
95         <title>AUTHOR</title>
96
97         <para>The original Samba software and related utilities
98         were created by Andrew Tridgell. Samba is now developed
99         by the Samba Team as an Open Source project similar
100         to the way the Linux kernel is developed.</para>
101
102 </refsect1>
103
104 </refentry>