aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zfs
diff options
context:
space:
mode:
authorLOLi <[email protected]>2018-08-19 00:47:41 +0200
committerBrian Behlendorf <[email protected]>2018-08-18 15:47:41 -0700
commita9d6270acb7f529cb446c46b429a52631777452f (patch)
tree7953b2b79240ad152d9ae1de7ead8d1edd22fa14 /cmd/zfs
parent1f87313ac830970088389a6d6e68fa3ce8194aff (diff)
'zfs holds' scripted mode is not documented
This change simply documents the existing "scripted mode" option in both command help and man page. Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #7798
Diffstat (limited to 'cmd/zfs')
-rw-r--r--cmd/zfs/zfs_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c
index e60ac514d..162cef6fb 100644
--- a/cmd/zfs/zfs_main.c
+++ b/cmd/zfs/zfs_main.c
@@ -353,7 +353,7 @@ get_usage(zfs_help_t idx)
case HELP_HOLD:
return (gettext("\thold [-r] <tag> <snapshot> ...\n"));
case HELP_HOLDS:
- return (gettext("\tholds [-r] <snapshot> ...\n"));
+ return (gettext("\tholds [-rH] <snapshot> ...\n"));
case HELP_RELEASE:
return (gettext("\trelease [-r] <tag> <snapshot> ...\n"));
case HELP_DIFF:
@@ -5961,9 +5961,10 @@ holds_callback(zfs_handle_t *zhp, void *data)
}
/*
- * zfs holds [-r] <snap> ...
+ * zfs holds [-rH] <snap> ...
*
- * -r Recursively hold
+ * -r Lists holds that are set on the named snapshots recursively.
+ * -H Scripted mode; elide headers and separate columns by tabs.
*/
static int
zfs_do_holds(int argc, char **argv)