]> granicus.if.org Git - zfs/commit
arcstat: flush stdout / outfile after each line
authorFabian-Gruenbichler <f.gruenbichler@proxmox.com>
Thu, 26 Oct 2017 19:18:49 +0000 (21:18 +0200)
committerTony Hutter <hutter2@llnl.gov>
Mon, 20 Nov 2017 22:19:23 +0000 (16:19 -0600)
commitd834d6811bbb74c9c58e8b0c36a466a71e13389b
treefb73b7d1d466e4d2cd3d1d773dbb60165821ff25
parent029a1b0c207f204b1b78086b009c6de8fc383cb3
arcstat: flush stdout / outfile after each line

Otherwise, if arcstat gets interrupted before the desired number of
iterations is reached, the output file will be empty (both if set via
'-o' or via shell redirection).

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Closes #6775
cmd/arcstat/arcstat.py