diff options
author | avg <avg@FreeBSD.org> | 2017-11-08 09:15:09 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-11-08 09:15:09 +0000 |
commit | aa4ec3e84962b8953d2bf0e3504960a5a4e19988 (patch) | |
tree | e4faf089f77b6301e95fd5dd368bca4673676306 /cddl/contrib/opensolaris/cmd | |
parent | 1f7c7696a515927cbce3d612a40f435c8f7edaba (diff) | |
download | FreeBSD-src-aa4ec3e84962b8953d2bf0e3504960a5a4e19988.zip FreeBSD-src-aa4ec3e84962b8953d2bf0e3504960a5a4e19988.tar.gz |
MFC r324170: MFV r323794: 8605 zfs channel programs: zfs.exists undocumented and non-working
Diffstat (limited to 'cddl/contrib/opensolaris/cmd')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/zfs/zfs-program.8 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/cmd/zfs/zfs-program.8 b/cddl/contrib/opensolaris/cmd/zfs/zfs-program.8 index 8b47d5f..c668097 100644 --- a/cddl/contrib/opensolaris/cmd/zfs/zfs-program.8 +++ b/cddl/contrib/opensolaris/cmd/zfs/zfs-program.8 @@ -289,6 +289,18 @@ msg (string) .Bd -ragged -compact -offset "xxxx" Debug message to be printed. .Ed +.It Em zfs.exists(dataset) +Returns true if the given dataset exists, or false if it doesn't. +A fatal error will be thrown if the dataset is not in the target pool. +That is, in a channel program running on rpool, +zfs.exists("rpool/nonexistent_fs") returns false, but +zfs.exists("somepool/fs_that_may_exist") will error. +.Pp +dataset (string) +.Bd -ragged -compact -offset "xxxx" +Dataset to check for existence. +Must be in the target pool. +.Ed .It Em zfs.get_prop(dataset, property) Returns two values. First, a string, number or table containing the property value for the given |