Files
mirror_zfs/cmd
Rob N 5f2700eee5 zpool: flush output before sleeping
Several zpool commands (status, list, iostat) have modes that present
some information, sleep a while, present the current state, sleep, etc.
Some of those had ways to invoke them that when piped would appear to do
nothing for a while, because non-terminals are block-buffered, not
line-buffered, by default.  Fix this by forcing a flush before sleeping.

In particular, all of these buffered:
- zpool status <pool> <interval>
- zpool iostat -y<m> <pool> <interval>
- zpool list <pool> <interval>

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #15593
2023-12-05 11:53:14 -08:00
..
2023-11-08 10:19:41 -08:00
2023-12-01 15:25:17 -08:00
2023-10-02 16:58:54 -07:00
2022-09-27 16:47:24 -07:00
2023-12-05 11:53:14 -08:00
2023-03-14 15:25:50 -07:00
2023-05-25 13:51:53 -07:00
2023-11-08 10:19:41 -08:00