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_ceph_snapshots.8">
6 <refentrytitle>vfs_ceph_snapshots</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">&doc.version;</refmiscinfo>
15 <refname>vfs_ceph_snapshots</refname>
17 Expose CephFS snapshots as shadow-copies
23 <command>vfs objects = ceph_snapshots</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_ceph_snapshots</command> VFS module exposes
36 CephFS snapshots for use by Samba. When enabled, SMB clients
37 such as Windows Explorer's Previous Versions dialog, can
38 enumerate snapshots and access them via "timewarp" tokens.
42 This module can be combined with <command>vfs_ceph</command>,
43 but <command>vfs_ceph_snapshots</command> must be listed first
44 in the <command>vfs objects</command> parameter list.
48 CephFS support for ceph.snap.btime virtual extended attributes
49 is required for this module to work properly. This support was
50 added via https://tracker.ceph.com/issues/38838.
55 <title>CONFIGURATION</title>
58 When used atop <command>vfs_ceph</command>,
59 <command>path</command> refers to an absolute path within the
60 Ceph filesystem and should not be mounted locally:
64 <smbconfsection name="[share]"/>
65 <smbconfoption name="vfs objects">ceph_snapshots ceph</smbconfoption>
66 <smbconfoption name="path">/non-mounted/cephfs/path</smbconfoption>
67 <smbconfoption name="kernel share modes">no</smbconfoption>
71 <command>vfs_ceph_snapshots</command> can also be used atop a
72 kernel CephFS mounted share path, without
73 <command>vfs_ceph</command>. In this case Samba's default VFS
74 backend <command>vfs_default</command> is used:
78 <smbconfsection name="[share]"/>
79 <smbconfoption name="vfs objects">ceph_snapshots</smbconfoption>
80 <smbconfoption name="path">/mnt/cephfs/</smbconfoption>
85 <title>OPTIONS</title>
89 <term>ceph:snapdir = subdirectory</term>
92 Allows for the configuration of the special CephFS
93 snapshot subdirectory name. This parameter should only
94 be changed from the ".snap" default if the ceph.conf
95 <command>client snapdir</command> or
96 <command>snapdirname</command> mount option settings
97 are changed from their matching ".snap" defaults.
101 <smbconfoption name="ceph:snapdir">.snap</smbconfoption>
105 <smbconfoption name="ceph:snapdir">.snapshots</smbconfoption>
113 <title>VERSION</title>
116 This man page is part of version &doc.version; of the Samba suite.
121 <title>AUTHOR</title>
123 <para>The original Samba software and related utilities
124 were created by Andrew Tridgell. Samba is now developed
125 by the Samba Team as an Open Source project similar
126 to the way the Linux kernel is developed.</para>