]> granicus.if.org Git - zfs/commit
Handle invalid options in arc_summary
authorLOLi <loli10K@users.noreply.github.com>
Tue, 19 Dec 2017 21:02:40 +0000 (22:02 +0100)
committerTony Hutter <hutter2@llnl.gov>
Tue, 30 Jan 2018 16:27:31 +0000 (10:27 -0600)
commit9a6c57845a431f55fd617c38e180b26215f0ca6f
tree35eeedfeae0bda7833fdb7cf41527eb6895e2a64
parentd27a40d28f96cfd9f7b32337306f64935ee749bc
Handle invalid options in arc_summary

If an invalid option is provided to arc_summary.py we handle any error
thrown from the getopt Python module and print the usage help message.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #6983
cmd/arc_summary/arc_summary.py
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_user/misc/Makefile.am
tests/zfs-tests/tests/functional/cli_user/misc/arc_summary_002_neg.ksh [new file with mode: 0755]