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_commit.8">
6 <refentrytitle>vfs_commit</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">4.2</refmiscinfo>
15 <refname>vfs_commit</refname>
16 <refpurpose>flush dirty data at specified intervals</refpurpose>
21 <command>vfs objects = commit</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_commit</command> VFS module keeps track of
33 the amount of data written to a file and synchronizes it to
34 disk when a specified amount accumulates.
37 <para><command>vfs_commit</command> is useful in two
38 circumstances. First, if you have very precious data, the
39 impact of unexpected power loss can be minimized by a small
40 commit:dthresh value. Secondly, write performance can be
41 improved on some systems by flushing file data early and at
42 regular intervals.</para>
44 <para>This module is stackable.</para>
50 <title>OPTIONS</title>
55 <term>commit:dthresh = BYTES</term>
57 <para>Synchronize file data each time the specified
58 number of bytes has been written.
61 <para>The following suffixes may be applied to BYTES:</para>
63 <listitem><para><command>K</command> - BYTES is a number of kilobytes</para></listitem>
64 <listitem><para><command>M</command> - BYTES is a number of megabytes</para></listitem>
65 <listitem><para><command>G</command> - BYTES is a number of gigabytes</para></listitem>
75 <title>EXAMPLES</title>
77 <para>Synchronize the file data on the [precious] share after
78 every 512 kilobytes (524288 bytes) of data is written:</para>
80 <smbconfsection name="[precious]"/>
81 <smbconfoption name="path">/data/precious</smbconfoption>
82 <smbconfoption name="vfs objects">commit</smbconfoption>
83 <smbconfoption name="commit:dthresh">512K</smbconfoption>
88 <title>CAVEATS</title>
89 <para>On some systems, the data synchronization performed by
90 <command>commit</command> may reduce performance.
95 <title>VERSION</title>
96 <para>This man page is correct for version 3.0.25 of the Samba suite.
101 <title>AUTHOR</title>
103 <para>The original Samba software and related utilities
104 were created by Andrew Tridgell. Samba is now developed
105 by the Samba Team as an Open Source project similar
106 to the way the Linux kernel is developed.</para>