]> 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)
committerTony Hutter <hutter2@llnl.gov>
Fri, 6 Jul 2018 09:46:51 +0000 (02:46 -0700)
commit98bc8e0b236174e2f9b877006832b053212ffaca
treea1e01e339673b60dac7d88a651487ab45e881e4c
parentcaafa436eb335349f75fb6a72c06eb21e87ffb9e
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