aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/arc_summary
diff options
context:
space:
mode:
authorAndrea Gelmini <[email protected]>2019-08-30 18:43:30 +0200
committerBrian Behlendorf <[email protected]>2019-08-30 09:43:30 -0700
commitad0b23b14ab37a54764122fe8341e62f10245e15 (patch)
tree66ce117ee356fdb08f2eb31569fba0ad50cae2e3 /cmd/arc_summary
parentac3d4d0cf6b3d06cfd90636b4bc8a2043176b725 (diff)
Fix typos in cmd/
Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Andrea Gelmini <[email protected]> Closes #9234
Diffstat (limited to 'cmd/arc_summary')
-rwxr-xr-xcmd/arc_summary/arc_summary314
1 files changed, 7 insertions, 7 deletions
diff --git a/cmd/arc_summary/arc_summary3 b/cmd/arc_summary/arc_summary3
index fc5e1e4b6..d33271438 100755
--- a/cmd/arc_summary/arc_summary3
+++ b/cmd/arc_summary/arc_summary3
@@ -43,7 +43,7 @@ import subprocess
import sys
import time
-DECRIPTION = 'Print ARC and other statistics for ZFS on Linux'
+DESCRIPTION = 'Print ARC and other statistics for ZFS on Linux'
INDENT = ' '*8
LINE_LENGTH = 72
PROC_PATH = '/proc/spl/kstat/zfs/'
@@ -65,7 +65,7 @@ SECTION_PATHS = {'arc': 'arcstats',
'zfetch': 'zfetchstats',
'zil': 'zil'}
-parser = argparse.ArgumentParser(description=DECRIPTION)
+parser = argparse.ArgumentParser(description=DESCRIPTION)
parser.add_argument('-a', '--alternate', action='store_true', default=False,
help='use alternate formatting for tunables and SPL',
dest='alt')
@@ -284,7 +284,7 @@ def get_spl_tunables(PATH):
def get_descriptions(request):
- """Get the decriptions of the Solaris Porting Layer (SPL) or the
+ """Get the descriptions of the Solaris Porting Layer (SPL) or the
tunables, return with minimal formatting.
"""
@@ -708,7 +708,7 @@ def section_l2arc(kstats_dict):
def section_spl(*_):
"""Print the SPL parameters, if requested with alternative format
- and/or decriptions. This does not use kstats.
+ and/or descriptions. This does not use kstats.
"""
spls = get_spl_tunables(SPL_PATH)
@@ -725,7 +725,7 @@ def section_spl(*_):
try:
print(INDENT+'#', descriptions[key])
except KeyError:
- print(INDENT+'# (No decription found)') # paranoid
+ print(INDENT+'# (No description found)') # paranoid
print(format_raw_line(key, value))
@@ -734,7 +734,7 @@ def section_spl(*_):
def section_tunables(*_):
"""Print the tunables, if requested with alternative format and/or
- decriptions. This does not use kstasts.
+ descriptions. This does not use kstasts.
"""
tunables = get_spl_tunables(TUNABLES_PATH)
@@ -751,7 +751,7 @@ def section_tunables(*_):
try:
print(INDENT+'#', descriptions[key])
except KeyError:
- print(INDENT+'# (No decription found)') # paranoid
+ print(INDENT+'# (No description found)') # paranoid
print(format_raw_line(key, value))