Skip to content

Commit

Permalink
doc: explain vfs_btrfs remote snapshot configuration
Browse files Browse the repository at this point in the history
This extends the vfs_btrfs man page to also cover FSRVP remote snapshot
behaviour and configuration.

Signed-off-by: David Disseldorp <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
ddiss authored and jrasamba committed Mar 31, 2015
1 parent f64c2fe commit 5056c5a
Showing 1 changed file with 51 additions and 3 deletions.
54 changes: 51 additions & 3 deletions docs-xml/manpages/vfs_btrfs.8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,78 @@
SMB clients via the get/set compression fsctls.
</para>

<para>
Btrfs snapshots can be manipulated by Samba's FSRVP server.
Snapshot manipulation using this module is currently considered
experimental, and is therefore disabled by default. The
<command>vfs_snapper</command> module is instead recommended for
this purpose.
</para>

<para>
This module is stackable.
</para>
</refsect1>

<refsect1>
<title>OPTIONS</title>

<variablelist>
<varlistentry>
<term>btrfs: manipulate snapshots = [yes|no]</term>
<listitem>
<para>
When set to <emphasis>yes</emphasis>, experimental support for
the creation and deletion of snapshots via corresponding Btrfs
IOCTLs will be enabled. The default is <emphasis>no</emphasis>,
which means that such requests are passed through to any
underlying VFS module.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>

<refsect1>
<title>CONFIGURATION</title>

<para>
<command>vfs_btrfs</command> requires that the underlying share
path is a Btrfs filesystem.
path is a Btrfs subvolume.
</para>

<programlisting>
<smbconfsection name="[share]"/>
<smbconfoption name="vfs objects">btrfs</smbconfoption>
<smbconfoption name="btrfs: manipulate snapshots">no</smbconfoption>
</programlisting>
<para>
To use the experimental snapshot manipulation functionality
provided by this module, it must be explicity enabled, and
Samba's FSRVP server must be running.
</para>
<para>
The <command>vfs_shadow_copy</command> module can be used to
expose snapshots created by <command>vfs_btrfs</command> to
Windows Explorer as file / directory "previous versions".
</para>

<programlisting>
<smbconfsection name="[global]"/>
<smbconfoption name="rpc_daemon:fssd">fork</smbconfoption>
<smbconfoption name="registry shares">yes</smbconfoption>
<smbconfoption name="include">registry</smbconfoption>

<smbconfsection name="[share]"/>
<smbconfoption name="vfs objects">btrfs shadow_copy</smbconfoption>
<smbconfoption name="btrfs: manipulate snapshots">yes</smbconfoption>
</programlisting>
</refsect1>

<refsect1>
<title>VERSION</title>

<para>
This man page is correct for version 4.1.0 of the Samba suite.
This man page is correct for version 4.3.0 of the Samba suite.
</para>
</refsect1>

Expand Down

0 comments on commit 5056c5a

Please sign in to comment.