]> git.proxmox.com Git - mirror_zfs.git/commit - tests/runfiles/linux.run
Handle invalid options in arc_summary
authorLOLi <loli10K@users.noreply.github.com>
Tue, 19 Dec 2017 21:02:40 +0000 (22:02 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Dec 2017 21:02:40 +0000 (13:02 -0800)
commitc4ba46deade0a14d089228a56a5d0aa0ffd5fadd
treef0d6393b98cde0d2285569e7852dcea8f4217407
parent2e7c1bb35a9858eff93feaf9132d3d89e756f6e0
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]