aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorChris Williamson <[email protected]>2018-02-08 09:17:52 -0700
committerBrian Behlendorf <[email protected]>2018-02-08 15:28:52 -0800
commit475eca4908731a87fff1be500ba4d7b011d392e4 (patch)
tree4dcc6c4bb7e897e94486c3c7e5aa6f95e413c789 /module
parentd99a015343425a1c856c900aa8223016400ac2dc (diff)
OpenZFS 8605 - zfs channel programs fix zfs.exists
Authored by: Chris Williamson <[email protected]> Reviewed by: Paul Dagnelie <[email protected]> Reviewed by: Dan Kimmel <[email protected]> Reviewed by: Matt Ahrens <[email protected]> Approved by: Robert Mustacchi <[email protected]> Ported-by: Don Brady <[email protected]> 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
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zcp.c b/module/zfs/zcp.c
index 07f96e298..83560309b 100644
--- a/module/zfs/zcp.c
+++ b/module/zfs/zcp.c
@@ -714,7 +714,7 @@ zcp_exists(lua_State *state)
return (luaL_error(state, "unexpected error %d", error));
}
- return (0);
+ return (1);
}
/*