Add more content to the description of "registry shares".
[Samba/bjacke.git] / docs / manpages-3 / vfs_prealloc.8.xml
bloba05f8d1ee11a39513152547b367b058f9025a26c
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">
5 <refmeta>
6         <refentrytitle>vfs_prealloc</refentrytitle>
7         <manvolnum>8</manvolnum>
8 </refmeta>
11 <refnamediv>
12         <refname>vfs_prealloc</refname>
13         <refpurpose>preallocate matching files to a predetermined size</refpurpose>
14 </refnamediv>
16 <refsynopsisdiv>
17         <cmdsynopsis>
18                 <command>vfs objects = prealloc</command>
19         </cmdsynopsis>
20 </refsynopsisdiv>
22 <refsect1>
23         <title>DESCRIPTION</title>
25         <para>This VFS module is part of the
26         <citerefentry><refentrytitle>samba</refentrytitle>
27         <manvolnum>7</manvolnum></citerefentry> suite.</para>
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>
35         <para>This module is stackable.</para>
37 </refsect1>
40 <refsect1>
41         <title>OPTIONS</title>
43         <variablelist>
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>
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>
59                 </listitem>
60                 </varlistentry>
62         </variablelist>
63 </refsect1>
65 <refsect1>
66         <title>EXAMPLES</title>
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>
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>
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>
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>
94 <refsect1>
95         <title>AUTHOR</title>
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>
102 </refsect1>
104 </refentry>