]> git.proxmox.com Git - mirror_zfs.git/commit
Add Python 3 rewrite of arc_summary.py
authorScot W. Stevenson <scot.stevenson@gmail.com>
Wed, 28 Feb 2018 16:52:34 +0000 (17:52 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 28 Feb 2018 16:52:34 +0000 (08:52 -0800)
commit19528cf9490bf4519d70028cc794e438303baf12
treef8e897b847a03f70457690848b7dbccd70daacc8
parent3e9c9d8a89c8665fc585db88fa911ce60533e79f
Add Python 3 rewrite of arc_summary.py

Add new script arc_summary3.py as a complete rewrite of the
arc_summary.py tool (see issue #6873)

Add new options:

        -g/--graph    - Display crude graphic representation
                        of ARC status and quit
        -r/--raw      - Print all available information as
                        minimally formatted list (for grep)
        -s/--section  - Print a single section. This
                        replaces -p/--page, which is kept for
                        backwards use but marked as
                        depreciated

Add new sections with information on ZIL and SPL. Notify user
if sections L2ARC and VDEV are skipped instead of failing
silently. Add warning that -p/--page option is depreciated.

Developed for Python 3.5.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Scot W. Stevenson <scot.stevenson@gmail.com>
Closes #6873
Closes #6892
cmd/arc_summary/Makefile.am
cmd/arc_summary/arc_summary3.py [new file with mode: 0755]
tests/runfiles/linux.run
tests/zfs-tests/include/commands.cfg
tests/zfs-tests/tests/functional/cli_user/misc/Makefile.am
tests/zfs-tests/tests/functional/cli_user/misc/arc_summary3_001_pos.ksh [new file with mode: 0755]