path: root/man
diff options
authorAndriy Gapon <avg@FreeBSD.org>2017-09-22 08:18:05 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-09-22 08:18:05 +0000
commita373b4201a9710f0aafcf47bad82450448074c16 (patch)
tree02d789baaa84f69b813ac8b7ed2dfd125a283131 /man
parent52aa70fa5950b5223b0797daf37baeca9efc8131 (diff)
8600 ZFS channel programs - snapshot
illumos/illumos-gate@2840dce1a029098fb784afd951d5f98089f850d8 https://github.com/illumos/illumos-gate/commit/2840dce1a029098fb784afd951d5f98089f850d8 https://www.illumos.org/issues/8600 ZFS channel programs should be able to create snapshots. In addition to the base snapshot functionality, this will likely entail adding extra logic to handle edge cases which were formerly not possible, such as creating then destroying a snapshot in the same transaction sync. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: John Kennedy <john.kennedy@delphix.com> Reviewed by: Brad Lewis <brad.lewis@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Chris Williamson <chris.williamson@delphix.com>
Notes: svn path=/vendor-sys/illumos/dist/; revision=323913
Diffstat (limited to 'man')
1 files changed, 13 insertions, 0 deletions
diff --git a/man/man1m/zfs-program.1m b/man/man1m/zfs-program.1m
index bf5835ec8b1c..0149f2b7a442 100644
--- a/man/man1m/zfs-program.1m
+++ b/man/man1m/zfs-program.1m
@@ -372,6 +372,18 @@ filesystem (string)
.Bd -ragged -compact -offset "xxxx"
Filesystem to rollback.
+.It Em zfs.sync.snapshot(dataset)
+Create a snapshot of a filesystem.
+Returns 0 if the snapshot was successfully created,
+and a nonzero error code otherwise.
+Note: Taking a snapshot will fail on any pool older than legacy version 27.
+To enable taking snapshots from ZCP scripts, the pool must be upgraded.
+dataset (string)
+.Bd -ragged -compact -offset "xxxx"
+Name of snapshot to create.
.It Sy zfs.check submodule
For each function in the zfs.sync submodule, there is a corresponding zfs.check
@@ -392,6 +404,7 @@ The available zfs.check functions are:
.It Em zfs.check.destroy(dataset, [defer=true|false])
.It Em zfs.check.promote(dataset)
.It Em zfs.check.rollback(filesystem)
+.It Em zfs.check.snapshot(dataset)
.It Sy zfs.list submodule
The zfs.list submodule provides functions for iterating over datasets and