mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Fix typos in cmd/
Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net> Closes #9234
This commit is contained in:
committed by
Tony Hutter
parent
cac5f924ce
commit
eaf8e3b779
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user