HomeFreeBSD

Handle invalid options in arc_summary

Description

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

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on Dec 19 2017, 9:02 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 19 2017, 9:02 PM
Parents
rG2e7c1bb35a98: OpenZFS 8794 - cstyle generates warnings with recent perl
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc4ba46deade0: Handle invalid options in arc_summary (authored by LOLi <loli10K@users.noreply.github.com>).Dec 19 2017, 9:02 PM