6beaed3f99
since Debian unstable has not been updated yet.
52 lines
1.6 KiB
Diff
52 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: "Scot W. Stevenson" <scot.stevenson@gmail.com>
|
|
Date: Tue, 7 Nov 2017 23:50:15 +0100
|
|
Subject: [PATCH] Sort output of tunables in arc_summary.py
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Sort list of tunables printed by _tunable_summary()
|
|
alphabetically
|
|
|
|
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
|
Signed-off-by: Scot W. Stevenson <scot.stevenson@gmail.com>
|
|
Closes #6828
|
|
(cherry picked from commit 904c03672beeadf4c74b919f55b5f78be882b7f8)
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
---
|
|
cmd/arc_summary/arc_summary.py | 12 ++++++++----
|
|
1 file changed, 8 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/cmd/arc_summary/arc_summary.py b/cmd/arc_summary/arc_summary.py
|
|
index f4968fb6a..4c513d63d 100755
|
|
--- a/cmd/arc_summary/arc_summary.py
|
|
+++ b/cmd/arc_summary/arc_summary.py
|
|
@@ -900,14 +900,18 @@ def _tunable_summary(Kstat):
|
|
sys.stderr.write("Tunable descriptions will be disabled.\n")
|
|
|
|
sys.stdout.write("ZFS Tunable:\n")
|
|
+ names.sort()
|
|
+
|
|
+ if alternate_tunable_layout:
|
|
+ format = "\t%s=%s\n"
|
|
+ else:
|
|
+ format = "\t%-50s%s\n"
|
|
+
|
|
for name in names:
|
|
+
|
|
if not name:
|
|
continue
|
|
|
|
- format = "\t%-50s%s\n"
|
|
- if alternate_tunable_layout:
|
|
- format = "\t%s=%s\n"
|
|
-
|
|
if show_tunable_descriptions and name in descriptions:
|
|
sys.stdout.write("\t# %s\n" % descriptions[name])
|
|
|
|
--
|
|
2.14.2
|
|
|