]> git.proxmox.com Git - mirror_zfs.git/commit
zpool iostat should print headers when terminal fills
authorDamian Wojsław <damian@wojslaw.pl>
Wed, 23 Jan 2019 21:29:49 +0000 (22:29 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Jan 2019 21:29:49 +0000 (13:29 -0800)
commit8fccfa8e17d30b4dae82f0cd33346f39b79f4822
tree80932c3b5b16a7bb14b4e5ee3e844ee22a33d62c
parentb5d693581d6238942997e1493ddfafa30b1e28f2
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 <josh@sysmgr.org>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Damian Wojsław <damian@wojslaw.pl>
Closes #8235
Closes #8262
cmd/zpool/zpool_main.c
man/man8/zpool.8