diff options
author | Brad Lewis <[email protected]> | 2018-02-08 09:20:33 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-02-08 15:29:14 -0800 |
commit | af0736898669eabe31e47405023c80b9a58e5e6c (patch) | |
tree | 05c127fee11e5e639326d68f10216bd9ca228265 /man/man8 | |
parent | 475eca4908731a87fff1be500ba4d7b011d392e4 (diff) |
OpenZFS 8592 - ZFS channel programs - rollback
Authored by: Brad Lewis <[email protected]>
Reviewed by: Chris Williamson <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Approved by: Robert Mustacchi <[email protected]>
Ported-by: Don Brady <[email protected]>
ZFS channel programs should be able to perform a rollback.
OpenZFS-issue: https://www.illumos.org/issues/8592
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/d46b5ed6
Diffstat (limited to 'man/man8')
-rw-r--r-- | man/man8/zfs-program.8 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/man/man8/zfs-program.8 b/man/man8/zfs-program.8 index 2e4e9587d..4c7d86ef1 100644 --- a/man/man8/zfs-program.8 +++ b/man/man8/zfs-program.8 @@ -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 .Dt ZFS-PROGRAM 8 @@ -361,6 +361,17 @@ dataset (string) .Bd -ragged -compact -offset "xxxx" Clone to be promoted. .Ed +.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. +.Pp +filesystem (string) +.Bd -ragged -compact -offset "xxxx" +Filesystem to rollback. +.Ed .El .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) .El .It Sy zfs.list submodule The zfs.list submodule provides functions for iterating over datasets and |