diff options
author | Damian Wojsław <[email protected]> | 2019-01-23 22:29:49 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-01-23 13:29:49 -0800 |
commit | 8fccfa8e17d30b4dae82f0cd33346f39b79f4822 (patch) | |
tree | 80932c3b5b16a7bb14b4e5ee3e844ee22a33d62c /man | |
parent | b5d693581d6238942997e1493ddfafa30b1e28f2 (diff) |
zpool iostat should print headers when terminal fills
When `zpool iostat` fills the terminal the headers should be
printed again. `zpool iostat -n` can be used to suppress this.
If the command is not attached to a tty, headers will not be
printed so as to not break existing scripts.
Reviewed-by: Joshua M. Clulow <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Damian Wojsław <[email protected]>
Closes #8235
Closes #8262
Diffstat (limited to 'man')
-rw-r--r-- | man/man8/zpool.8 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/man/man8/zpool.8 b/man/man8/zpool.8 index 8f35ca0ee..28517e475 100644 --- a/man/man8/zpool.8 +++ b/man/man8/zpool.8 @@ -123,7 +123,7 @@ .Cm iostat .Op Oo Oo Fl c Ar SCRIPT Oc Oo Fl lq Oc Oc Ns | Ns Fl rw .Op Fl T Sy u Ns | Ns Sy d -.Op Fl ghHLpPvy +.Op Fl ghHLnpPvy .Oo Oo Ar pool Ns ... Oc Ns | Ns Oo Ar pool vdev Ns ... Oc Ns | Ns Oo Ar vdev Ns ... Oc Oc .Op Ar interval Op Ar count .Nm @@ -1631,7 +1631,7 @@ with no flags on the relevant target devices. .Cm iostat .Op Oo Oo Fl c Ar SCRIPT Oc Oo Fl lq Oc Oc Ns | Ns Fl rw .Op Fl T Sy u Ns | Ns Sy d -.Op Fl ghHLpPvy +.Op Fl ghHLnpPvy .Oo Oo Ar pool Ns ... Oc Ns | Ns Oo Ar pool vdev Ns ... Oc Ns | Ns Oo Ar vdev Ns ... Oc Oc .Op Ar interval Op Ar count .Xc @@ -1643,7 +1643,10 @@ When given an .Ar interval , the statistics are printed every .Ar interval -seconds until ^C is pressed. If count is specified, the command exits +seconds until ^C is pressed. If +.Fl n +flag is specified the headers are displayed only once, otherwise they are +displayed periodically. If count is specified, the command exits after count reports are printed. The first report printed is always the statistics since boot regardless of whether .Ar interval @@ -1735,6 +1738,8 @@ Display real paths for vdevs resolving all symbolic links. This can be used to look up the current block device name regardless of the .Pa /dev/disk/ path used to open it. +.It Fl n +Print headers only once when passed .It Fl p Display numbers in parsable (exact) values. Time values are in nanoseconds. @@ -1760,6 +1765,7 @@ pool, in addition to the pool-wide statistics. Omit statistics since boot. Normally the first line of output reports the statistics since boot. This option suppresses that first line of output. +.Ar interval .It Fl w Display latency histograms: .Pp |