]> granicus.if.org Git - zfs/commitdiff
'zfs holds' scripted mode is not documented
authorLOLi <loli10K@users.noreply.github.com>
Sat, 18 Aug 2018 22:47:41 +0000 (00:47 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 18 Aug 2018 22:47:41 +0000 (15:47 -0700)
This change simply documents the existing "scripted mode" option in
both command help and man page.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7798

cmd/zfs/zfs_main.c
man/man8/zfs.8

index e60ac514d2652897437bf5559824a8f9c88eb353..162cef6fba26f8028a74c957a1cb73667419f128 100644 (file)
@@ -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)
index e356fc196e94fbc05847680e740810b85622be35..02141da71c5c0fde79b90d1ae0bc633c019036dd 100644 (file)
 .Ar tag Ar snapshot Ns ...
 .Nm
 .Cm holds
-.Op Fl r
+.Op Fl rH
 .Ar snapshot Ns ...
 .Nm
 .Cm release
@@ -4294,7 +4294,7 @@ of all descendent file systems.
 .It Xo
 .Nm
 .Cm holds
-.Op Fl r
+.Op Fl rH
 .Ar snapshot Ns ...
 .Xc
 Lists all existing user references for the given snapshot or snapshots.
@@ -4302,6 +4302,8 @@ Lists all existing user references for the given snapshot or snapshots.
 .It Fl r
 Lists the holds that are set on the named descendent snapshots, in addition to
 listing the holds on the named snapshot.
+.It Fl H
+Do not print headers, use tab-delimited output.
 .El
 .It Xo
 .Nm