aboutsummaryrefslogtreecommitdiffstats
path: root/include/thread_pool.h
diff options
context:
space:
mode:
authorRob N <[email protected]>2023-12-06 06:53:14 +1100
committerGitHub <[email protected]>2023-12-05 11:53:14 -0800
commit5f2700eee5428b9ca4d4689c6985e751b733cbc6 (patch)
treee52bbeb160564954895cab76c82fc2dccda0b419 /include/thread_pool.h
parentc7b6119268b87ba16249550a64d28594185595fb (diff)
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 <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #15593
Diffstat (limited to 'include/thread_pool.h')
0 files changed, 0 insertions, 0 deletions