]> git.proxmox.com Git - mirror_zfs.git/commit
OpenZFS 8600 - ZFS channel programs - snapshot
authorChris Williamson <chris.williamson@delphix.com>
Thu, 8 Feb 2018 16:24:39 +0000 (09:24 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 8 Feb 2018 23:29:24 +0000 (15:29 -0800)
commit234c91c50848fa74bd72efff4e555331a25d9fe1
treee93accbb8799995afbc2d3d3714577b1f925471c
parentaf0736898669eabe31e47405023c80b9a58e5e6c
OpenZFS 8600 - ZFS channel programs - snapshot

Authored by: Chris Williamson <chris.williamson@delphix.com>
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>
Ported-by: Don Brady <don.brady@delphix.com>
ZFS channel programs should be able to create snapshots.
In addition to the base snapshot functionality, this entails extra
logic to handle edge cases which were formerly not possible, such as
creating then destroying a snapshot in the same transaction sync.

OpenZFS-issue: https://www.illumos.org/issues/8600
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/68089b8b
22 files changed:
include/sys/dsl_dataset.h
include/sys/zcp.h
lib/libzfs_core/libzfs_core.c
man/man8/zfs-program.8
module/zfs/dsl_dataset.c
module/zfs/zcp.c
module/zfs/zcp_global.c
module/zfs/zcp_synctask.c
module/zfs/zfs_ioctl.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/channel_program/lua_core/Makefile.am
tests/zfs-tests/tests/functional/channel_program/lua_core/tst.return_large.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/channel_program/lua_core/tst.return_large.zcp [new file with mode: 0644]
tests/zfs-tests/tests/functional/channel_program/synctask_core/Makefile.am
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_destroy.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_destroy.zcp [new file with mode: 0644]
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_neg.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_neg.zcp [new file with mode: 0644]
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_recursive.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_recursive.zcp [new file with mode: 0644]
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_simple.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.snapshot_simple.zcp [new file with mode: 0644]