]> granicus.if.org Git - zfs/commit
Handle broken pipes in arc_summary
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Tue, 19 Dec 2017 21:19:24 +0000 (13:19 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Dec 2017 21:19:24 +0000 (13:19 -0800)
commit89a66a0457cd392ab8c6ad6d9c138fedaa425067
tree98e8780818ed2e25a5009941235a9eaf367d355c
parentc4ba46deade0a14d089228a56a5d0aa0ffd5fadd
Handle broken pipes in arc_summary

Using a command similar to 'arc_summary.py | head' causes
a broken pipe exception. Gracefully exit in the case of a
broken pipe in arc_summary.py.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6965
Closes #6969
cmd/arc_summary/arc_summary.py
tests/zfs-tests/tests/functional/cli_user/misc/arc_summary_001_pos.ksh