]> git.proxmox.com Git - mirror_zfs.git/commit - man/man8/zfs-program.8
OpenZFS 8605 - zfs channel programs fix zfs.exists
authorChris Williamson <chris.williamson@delphix.com>
Thu, 8 Feb 2018 16:17:52 +0000 (09:17 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 8 Feb 2018 23:28:52 +0000 (15:28 -0800)
commit475eca4908731a87fff1be500ba4d7b011d392e4
tree4dcc6c4bb7e897e94486c3c7e5aa6f95e413c789
parentd99a015343425a1c856c900aa8223016400ac2dc
OpenZFS 8605 - zfs channel programs fix zfs.exists

Authored by: Chris Williamson <chris.williamson@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Ported-by: Don Brady <don.brady@delphix.com>
zfs.exists() in channel programs doesn't return any result, and should
have a man page entry. This patch corrects zfs.exists so that it
returns a value indicating if the dataset exists or not. It also adds
documentation about it in the man page.

OpenZFS-issue: https://www.illumos.org/issues/8605
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/1e85e111
man/man8/zfs-program.8
module/zfs/zcp.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.exists.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/channel_program/lua_core/tst.exists.zcp [new file with mode: 0644]