]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zcp_synctask.c
Support setting user properties in a channel program
authorJason King <jasonbking@users.noreply.github.com>
Fri, 14 Feb 2020 21:41:42 +0000 (15:41 -0600)
committerGitHub <noreply@github.com>
Fri, 14 Feb 2020 21:41:42 +0000 (13:41 -0800)
commit13b5a4d5c018f94d04efefcec6205aa73205e05f
tree8cc7dce83989cd6bceac7735344c651e1b9919c1
parent4fe3a842bb53e7cebcdcd69deae758ccfb0660e9
Support setting user properties in a channel program

This adds support for setting user properties in a
zfs channel program by adding 'zfs.sync.set_prop'
and 'zfs.check.set_prop' to the ZFS LUA API.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Co-authored-by: Sara Hartse <sara.hartse@delphix.com>
Contributions-by: Jason King <jason.king@joyent.com>
Signed-off-by: Sara Hartse <sara.hartse@delphix.com>
Signed-off-by: Jason King <jason.king@joyent.com>
Closes #9950
include/sys/Makefile.am
include/sys/zcp_set.h [new file with mode: 0644]
lib/libzpool/Makefile.am
man/man8/zfs-program.8
module/zfs/Makefile.in
module/zfs/zcp_set.c [new file with mode: 0644]
module/zfs/zcp_synctask.c
tests/runfiles/common.run
tests/zfs-tests/tests/functional/channel_program/synctask_core/Makefile.am
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.set_props.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/channel_program/synctask_core/tst.set_props.zcp [new file with mode: 0644]