path: root/man
diff options
authorAndriy Gapon <avg@FreeBSD.org>2017-09-22 08:15:35 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-09-22 08:15:35 +0000
commit52aa70fa5950b5223b0797daf37baeca9efc8131 (patch)
treeece80b53523332866a8332d254a343a402a0e0c1 /man
parentbd021dbd51bac06b1719770df11301cc61e01158 (diff)
8592 ZFS channel programs - rollback
illumos/illumos-gate@000cce6b6fad4a8b0eecef6e1251f6aca1719c55 https://github.com/illumos/illumos-gate/commit/000cce6b6fad4a8b0eecef6e1251f6aca1719c55 https://www.illumos.org/issues/8592 ZFS channel programs should be able to perform a rollback. This logic will probably look pretty similar to zfs.sync.destroy(). Reviewed by: Chris Williamson <chris.williamson@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Brad Lewis <brad.lewis@delphix.com>
Notes: svn path=/vendor-sys/illumos/dist/; revision=323912
Diffstat (limited to 'man')
1 files changed, 13 insertions, 1 deletions
diff --git a/man/man1m/zfs-program.1m b/man/man1m/zfs-program.1m
index 0e1793e9d539..bf5835ec8b1c 100644
--- a/man/man1m/zfs-program.1m
+++ b/man/man1m/zfs-program.1m
@@ -8,7 +8,7 @@
.\" http://www.illumos.org/license/CDDL.
-.\" Copyright (c) 2016 by Delphix. All Rights Reserved.
+.\" Copyright (c) 2016, 2017 by Delphix. All rights reserved.
.Dd January 21, 2016
@@ -361,6 +361,17 @@ dataset (string)
.Bd -ragged -compact -offset "xxxx"
Clone to be promoted.
+.It Em zfs.sync.rollback(filesystem)
+Rollback to the previous snapshot for a dataset.
+Returns 0 on successful rollback, or a nonzero error code otherwise.
+Rollbacks can be performed on filesystems or zvols, but not on snapshots
+or mounted datasets.
+EBUSY is returned in the case where the filesystem is mounted.
+filesystem (string)
+.Bd -ragged -compact -offset "xxxx"
+Filesystem to rollback.
.It Sy zfs.check submodule
For each function in the zfs.sync submodule, there is a corresponding zfs.check
@@ -380,6 +391,7 @@ The available zfs.check functions are:
.Bl -tag -width "xx"
.It Em zfs.check.destroy(dataset, [defer=true|false])
.It Em zfs.check.promote(dataset)
+.It Em zfs.check.rollback(filesystem)
.It Sy zfs.list submodule
The zfs.list submodule provides functions for iterating over datasets and