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">
6 <refentrytitle>vfs_prealloc</refentrytitle>
7 <manvolnum>8</manvolnum>
12 <refname>vfs_prealloc</refname>
13 <refpurpose>preallocate matching files to a predetermined size</refpurpose>
18 <command>vfs objects = prealloc</command>
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>
41 <title>OPTIONS</title>
46 <term>prealloc:EXT = BYTES</term>
48 <para>Preallocate all files with the extension EXT to
49 the size specified by BYTES.
52 <para>The following suffixes may be applied to BYTES:</para>
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>
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>
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>
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.
89 <title>VERSION</title>
90 <para>This man page is correct for version 3.0.25 of the Samba suite.
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>