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>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">4.7</refmiscinfo>
15 <refname>vfs_prealloc</refname>
16 <refpurpose>preallocate matching files to a predetermined size</refpurpose>
21 <command>vfs objects = prealloc</command>
26 <title>DESCRIPTION</title>
28 <para>This VFS module is part of the
29 <citerefentry><refentrytitle>samba</refentrytitle>
30 <manvolnum>7</manvolnum></citerefentry> suite.</para>
32 <para>The <command>vfs_prealloc</command> VFS module preallocates
33 files to a specified size each time a new file is created. This
34 is useful in environments where files are of a predetermined
35 size will be written to a disk subsystem where extending file
36 allocations is expensive. </para>
38 <para>This module is stackable.</para>
44 <title>OPTIONS</title>
49 <term>prealloc:EXT = BYTES</term>
51 <para>Preallocate all files with the extension EXT to
52 the size specified by BYTES.
55 <para>The following suffixes may be applied to BYTES:</para>
57 <listitem><para><command>K</command> - BYTES is a number of kilobytes</para></listitem>
58 <listitem><para><command>M</command> - BYTES is a number of megabytes</para></listitem>
59 <listitem><para><command>G</command> - BYTES is a number of gigabytes</para></listitem>
69 <title>EXAMPLES</title>
71 <para>A process writes TIFF files to a Samba share, and the
72 is known these files will almost always be around 4 megabytes
73 (4194304 bytes): </para>
76 <smbconfsection name="[frames]"/>
77 <smbconfoption name="path">/data/frames</smbconfoption>
78 <smbconfoption name="vfs objects">prealloc</smbconfoption>
79 <smbconfoption name="prealloc:tiff">4M</smbconfoption>
84 <title>CAVEATS</title>
85 <para><command>vfs_prealloc</command> is not supported on all
86 platforms and filesystems. Currently only XFS filesystems on
87 Linux and IRIX are supported.
92 <title>VERSION</title>
93 <para>This man page is correct for version 3.0.25 of the Samba suite.
100 <para>The original Samba software and related utilities
101 were created by Andrew Tridgell. Samba is now developed
102 by the Samba Team as an Open Source project similar
103 to the way the Linux kernel is developed.</para>