summaryrefslogtreecommitdiffstats
path: root/sbin/mksnap_ffs/mksnap_ffs.8
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2009-05-29 19:18:41 +0000
committerpjd <pjd@FreeBSD.org>2009-05-29 19:18:41 +0000
commitd747431e06c903f9e8638bd48d28505a79749c9f (patch)
treec09c007b5c95c0fcfadd855c6aebe7de77bd18e3 /sbin/mksnap_ffs/mksnap_ffs.8
parent13ace3be9e1c583dacf2c7cdc67c99eaa3be8d07 (diff)
downloadFreeBSD-src-d747431e06c903f9e8638bd48d28505a79749c9f.zip
FreeBSD-src-d747431e06c903f9e8638bd48d28505a79749c9f.tar.gz
- Move from mount(2) to nmount(2). This should allow to convert MNT_SNAPSHOT
flag from a mount flag to FS-specific flag. - Simplify usage. Instead of 'mksnap_ffs /mnt/foo /mnt/foo/snap' allow to give only one argument: 'mksnap_ffs /mnt/foo/snap'. Old usage is also accepted for now. - Add an example of how to mount a snapshot.
Diffstat (limited to 'sbin/mksnap_ffs/mksnap_ffs.8')
-rw-r--r--sbin/mksnap_ffs/mksnap_ffs.821
1 files changed, 12 insertions, 9 deletions
diff --git a/sbin/mksnap_ffs/mksnap_ffs.8 b/sbin/mksnap_ffs/mksnap_ffs.8
index 3bd5d9e..8361722 100644
--- a/sbin/mksnap_ffs/mksnap_ffs.8
+++ b/sbin/mksnap_ffs/mksnap_ffs.8
@@ -34,7 +34,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd January 19, 2003
+.Dd May 29, 2009
.Dt MKSNAP_FFS 8
.Os
.Sh NAME
@@ -42,19 +42,12 @@
.Nd take a file system snapshot
.Sh SYNOPSIS
.Nm
-.Ar mountpoint
.Ar snapshot_name
.Sh DESCRIPTION
The
.Nm
utility creates a snapshot named
-.Ar snapshot_name
-on the file system mounted at
-.Ar mountpoint .
-The
-.Ar snapshot_name
-argument must be contained within the file system mounted at
-.Ar mountpoint .
+.Ar snapshot_name .
.Pp
The group ownership of the file is set to
.Dq Li operator ;
@@ -64,9 +57,19 @@ The mode of the snapshot is set to be readable by the owner
or members of the
.Dq Li operator
group.
+.Sh EXAMPLES
+Create a snapshot of
+.Pa /usr/home
+file system and mount the snapshot elsewhere:
+.Bd -literal -offset indent
+mksnap_ffs /usr/home/snapshot
+mdconfig -a -t vnode -o readonly -f /usr/home/snapshot
+mount -o ro /dev/md0 /mnt/
+.Ed
.Sh SEE ALSO
.Xr chmod 2 ,
.Xr chown 8 ,
+.Xr mdconfig 8,
.Xr mount 8
.Sh CAVEATS
The disk full situation is not handled gracefully and may
OpenPOWER on IntegriCloud