]> granicus.if.org Git - zfs/commit
Fix arcstat.py handling of unsupported options
authorLOLi <loli10K@users.noreply.github.com>
Sat, 18 Aug 2018 20:10:36 +0000 (22:10 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 18 Aug 2018 20:10:36 +0000 (13:10 -0700)
commit1f87313ac830970088389a6d6e68fa3ce8194aff
tree8c5945a0abb2f9115f9de4174fa003d144b2f0c8
parent802715b74a23a58d66028699a99eb141c85b7447
Fix arcstat.py handling of unsupported options

This change allows the arcstat.py script to handle unsupported options
gracefully and print both error and usage messages when one such option
is provided.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7799
cmd/arcstat/arcstat.py