From 54cb96567283df3e0a7d272b754921f6c8cde73d Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Tue, 3 Sep 2019 12:57:42 -0400 Subject: [PATCH] Fix sections list in arc_summary3 SECTIONS doesn't actually match the keys in SECTION_PATHS. --- cmd/arc_summary/arc_summary3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/arc_summary/arc_summary3 b/cmd/arc_summary/arc_summary3 index ec2f7fcb6fec..fd7e1d8df387 100755 --- a/cmd/arc_summary/arc_summary3 +++ b/cmd/arc_summary/arc_summary3 @@ -135,6 +135,9 @@ LINE_LENGTH = 72 DATE_FORMAT = '%a %b %d %H:%M:%S %Y' TITLE = 'ZFS Subsystem Report' +SECTIONS = 'arc archits dmu l2arc spl tunables vdev zil'.split() +SECTION_HELP = 'print info from one section ('+' '.join(SECTIONS)+')' + # Tunables and SPL are handled separately because they come from # different sources SECTION_PATHS = {'arc': 'arcstats', @@ -144,8 +147,6 @@ SECTION_PATHS = {'arc': 'arcstats', 'xuio': 'xuio_stats', 'zfetch': 'zfetchstats', 'zil': 'zil'} -SECTIONS = sorted(SECTION_PATHS.keys()) -SECTION_HELP = 'print info from one section (%s)' % ' '.join(SECTIONS) parser = argparse.ArgumentParser(description=DESCRIPTION) parser.add_argument('-a', '--alternate', action='store_true', default=False,