1 .\" $NetBSD: fss.4,v 1.11 2008/09/15 07:58:48 hannken Exp $ */
4 .\" Copyright (c) 2003 The NetBSD Foundation, Inc.
5 .\" All rights reserved.
7 .\" This code is derived from software contributed to The NetBSD Foundation
8 .\" by Juergen Hannken-Illjes.
10 .\" Redistribution and use in source and binary forms, with or without
11 .\" modification, are permitted provided that the following conditions
13 .\" 1. Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
15 .\" 2. Redistributions in binary form must reproduce the above copyright
16 .\" notice, this list of conditions and the following disclaimer in the
17 .\" documentation and/or other materials provided with the distribution.
19 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 .\" POSSIBILITY OF SUCH DAMAGE.
31 .Dd September 21, 2008
36 .Nd file system snapshot device
38 .Cd "pseudo-device fss 4"
42 driver provides a read-only interface to the snapshot of a currently
46 device gives the view of the file system when the snapshot was taken.
47 It can be configured via
52 command codes below are defined in
53 .Aq Pa sys/dev/fssvar.h .
55 The (third) argument to
57 should be a pointer to the type indicated.
59 .It Dv FSSIOCSET(struct fss_set)
63 .Bd -literal -offset indent
73 is the mount point of the file system.
76 is either a regular file or a raw disk device where data overwritten on
77 the file system will be saved.
80 is the preferred size of this data.
81 .It Dv FSSIOCGET(struct fss_get)
85 .Bd -literal -offset indent
87 char fsg_mount[MNAMELEN];
88 struct timeval fsg_time;
90 blkcnt_t fsg_mount_size;
96 is the mount point of the file system.
99 is the time this snapshot was taken.
102 is the current size of data clusters.
105 is the number of clusters of the file system.
108 is the number of clusters written to the backing store.
113 .It Dv FSSIOFSET(int)
119 .It Dv FSS_UNCONFIG_ON_CLOSE
122 device on the last close.
124 .It Dv FSSIOFGET(int)
130 For each active snapshot device there is a kernel thread
131 that handles the backing store.
136 is the device minor number.
138 .Bl -tag -width /dev/rfss? -compact
154 Be sure you have a backup before you use it.