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_btrfs.8">
6 <refentrytitle>vfs_btrfs</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">4.4</refmiscinfo>
15 <refname>vfs_btrfs</refname>
17 Utilize features provided by the Btrfs filesystem
23 <command>vfs objects = btrfs</command>
28 <title>DESCRIPTION</title>
30 <para>This VFS module is part of the
31 <citerefentry><refentrytitle>samba</refentrytitle>
32 <manvolnum>8</manvolnum></citerefentry> suite.</para>
35 The <command>vfs_btrfs</command> VFS module exposes Btrfs
36 specific features for use by Samba.
40 Btrfs allows for multiple files to share the same on-disk data
41 through the use cloned ranges. When an SMB client issues a
42 request to copy duplicate data (via FSCTL_SRV_COPYCHUNK), this
43 module maps the request to a Btrfs clone range IOCTL, instead
44 of performing reads and writes required by a traditional copy.
45 Doing so saves storage capacity and greatly reduces disk IO.
49 This module also exposes Btrfs per-file compression support to
50 SMB clients via the get/set compression fsctls.
54 Btrfs snapshots can be manipulated by Samba's FSRVP server.
55 Snapshot manipulation using this module is currently considered
56 experimental, and is therefore disabled by default. The
57 <command>vfs_snapper</command> module is instead recommended for
62 This module is stackable.
67 <title>OPTIONS</title>
71 <term>btrfs: manipulate snapshots = [yes|no]</term>
74 When set to <emphasis>yes</emphasis>, experimental support for
75 the creation and deletion of snapshots via corresponding Btrfs
76 IOCTLs will be enabled. The default is <emphasis>no</emphasis>,
77 which means that such requests are passed through to any
78 underlying VFS module.
86 <title>CONFIGURATION</title>
89 <command>vfs_btrfs</command> requires that the underlying share
90 path is a Btrfs subvolume.
93 <smbconfsection name="[share]"/>
94 <smbconfoption name="vfs objects">btrfs</smbconfoption>
95 <smbconfoption name="btrfs: manipulate snapshots">no</smbconfoption>
98 To use the experimental snapshot manipulation functionality
99 provided by this module, it must be explicity enabled, and
100 Samba's FSRVP server must be running.
103 The <command>vfs_shadow_copy</command> module can be used to
104 expose snapshots created by <command>vfs_btrfs</command> to
105 Windows Explorer as file / directory "previous versions".
109 <smbconfsection name="[global]"/>
110 <smbconfoption name="rpc_daemon:fssd">fork</smbconfoption>
111 <smbconfoption name="registry shares">yes</smbconfoption>
112 <smbconfoption name="include">registry</smbconfoption>
114 <smbconfsection name="[share]"/>
115 <smbconfoption name="vfs objects">btrfs shadow_copy</smbconfoption>
116 <smbconfoption name="btrfs: manipulate snapshots">yes</smbconfoption>
121 <title>VERSION</title>
124 This man page is correct for version 4.3.0 of the Samba suite.
129 <title>AUTHOR</title>
131 <para>The original Samba software and related utilities
132 were created by Andrew Tridgell. Samba is now developed
133 by the Samba Team as an Open Source project similar
134 to the way the Linux kernel is developed.</para>