Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zpool status: flush output before sleeping #15593

Merged
merged 1 commit into from
Dec 5, 2023

Commits on Dec 2, 2023

  1. 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>
    
    Signed-off-by: Rob Norris <[email protected]>
    robn committed Dec 2, 2023
    Configuration menu
    Copy the full SHA
    24c2654 View commit details
    Browse the repository at this point in the history