Skip to content

Commit

Permalink
Update zfs program command usage
Browse files Browse the repository at this point in the history
Update the zfs(8) man page to clearly describe that arguments for
channel programs are to be listed after the -- sentinel which
terminates argument processing.  This behavior is supported by
getopt on Linux, FreeBSD, and Illumos according to each platforms
respective man pages.

    zfs program [-jn] [-t instruction-limit] [-m memory-limit]
        pool script [--] arg1 ...

Reviewed-by: Clint Armstrong <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: loli10K <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #9056
Closes #9428
  • Loading branch information
behlendorf authored and tonyhutter committed Jan 22, 2020
1 parent 8af362c commit 90bc5ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions man/man8/zfs.8
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@
.Op Fl t Ar instruction-limit
.Op Fl m Ar memory-limit
.Ar pool script
.Op Ar arg1 No ...
.Op --
.Ar arg1 No ...
.Nm
.Cm load-key
.Op Fl nr
Expand Down Expand Up @@ -4469,7 +4470,8 @@ Display the path's inode change time as the first column of output.
.Op Fl t Ar instruction-limit
.Op Fl m Ar memory-limit
.Ar pool script
.Op Ar arg1 No ...
.Op --
.Ar arg1 No ...
.Xc
Executes
.Ar script
Expand Down

0 comments on commit 90bc5ca

Please sign in to comment.