aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/pyzfs
diff options
context:
space:
mode:
authorAndrea Gelmini <[email protected]>2019-08-30 18:44:43 +0200
committerBrian Behlendorf <[email protected]>2019-08-30 09:44:43 -0700
commitcd6b910b64a999f7943020786892e6a688f980d7 (patch)
treef3227368a14315c3935ca3597effdee97780d0b1 /contrib/pyzfs
parentad0b23b14ab37a54764122fe8341e62f10245e15 (diff)
Fix typos in contrib/
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 #9235
Diffstat (limited to 'contrib/pyzfs')
-rw-r--r--contrib/pyzfs/docs/source/conf.py2
-rw-r--r--contrib/pyzfs/libzfs_core/_libzfs_core.py14
-rw-r--r--contrib/pyzfs/libzfs_core/_nvlist.py2
-rw-r--r--contrib/pyzfs/libzfs_core/exceptions.py4
-rw-r--r--contrib/pyzfs/libzfs_core/test/test_libzfs_core.py8
5 files changed, 15 insertions, 15 deletions
diff --git a/contrib/pyzfs/docs/source/conf.py b/contrib/pyzfs/docs/source/conf.py
index 4ffd7c93e..4bbb938b6 100644
--- a/contrib/pyzfs/docs/source/conf.py
+++ b/contrib/pyzfs/docs/source/conf.py
@@ -291,7 +291,7 @@ autodoc_member_order = 'bysource'
#######################
# Neutralize effects of function wrapping on documented signatures.
-# The affected signatures could be explcitly placed into the
+# The affected signatures could be explicitly placed into the
# documentation (either in .rst files or as a first line of a
# docstring).
import functools
diff --git a/contrib/pyzfs/libzfs_core/_libzfs_core.py b/contrib/pyzfs/libzfs_core/_libzfs_core.py
index 5a4843943..06797b0f3 100644
--- a/contrib/pyzfs/libzfs_core/_libzfs_core.py
+++ b/contrib/pyzfs/libzfs_core/_libzfs_core.py
@@ -300,7 +300,7 @@ def lzc_destroy_snaps(snaps, defer):
Typical error is :exc:`SnapshotIsCloned` if `defer` is `False`.
The snapshot names are validated quite loosely and invalid names are
- typically ignored as nonexisiting snapshots.
+ typically ignored as nonexisting snapshots.
A snapshot name referring to a filesystem that doesn't exist is
ignored.
@@ -470,7 +470,7 @@ def lzc_hold(holds, fd=None):
Holds for snapshots which don't exist will be skipped and have an entry
added to the return value, but will not cause an overall failure.
No exceptions is raised if all holds, for snapshots that existed, were
- succesfully created.
+ successfully created.
Otherwise :exc:`.HoldFailure` exception is raised and no holds will be
created.
:attr:`.HoldFailure.errors` may contain a single element for an error that
@@ -654,7 +654,7 @@ def lzc_send_space(snapname, fromsnap=None, flags=None):
should be done.
:param fromsnap: the optional starting snapshot name.
If not `None` then an incremental stream size is estimated, otherwise
- a full stream is esimated.
+ a full stream is estimated.
:type fromsnap: `bytes` or `None`
:param flags: the flags that control what enhanced features can be used
in the stream.
@@ -1178,11 +1178,11 @@ def receive_header(fd):
the type of the dataset for which the stream has been created
(volume, filesystem)
'''
- # read sizeof(dmu_replay_record_t) bytes directly into the memort backing
+ # read sizeof(dmu_replay_record_t) bytes directly into the memory backing
# 'record'
record = _ffi.new("dmu_replay_record_t *")
_ffi.buffer(record)[:] = os.read(fd, _ffi.sizeof(record[0]))
- # get drr_begin member and its representation as a Pythn dict
+ # get drr_begin member and its representation as a Python dict
drr_begin = record.drr_u.drr_begin
header = {}
for field, descr in _ffi.typeof(drr_begin).fields:
@@ -1688,7 +1688,7 @@ def lzc_set_props(name, prop, val):
# As the extended API is not committed yet, the names of the new interfaces
# are not settled down yet.
# It's not clear if atomically setting multiple properties is an achievable
-# goal and an interface acting on mutiple entities must do so atomically
+# goal and an interface acting on multiple entities must do so atomically
# by convention.
# Being able to set a single property at a time is sufficient for ClusterHQ.
lzc_set_prop = lzc_set_props
@@ -1725,7 +1725,7 @@ def lzc_list(name, options):
Absence of this option implies all types.
The first of the returned file descriptors can be used to
- read the listing in a binary encounded format. The data is
+ read the listing in a binary encoded format. The data is
a series of variable sized records each starting with a fixed
size header, the header is followed by a serialized ``nvlist``.
Each record describes a single element and contains the element's
diff --git a/contrib/pyzfs/libzfs_core/_nvlist.py b/contrib/pyzfs/libzfs_core/_nvlist.py
index fe4239a3c..dc6d820bd 100644
--- a/contrib/pyzfs/libzfs_core/_nvlist.py
+++ b/contrib/pyzfs/libzfs_core/_nvlist.py
@@ -113,7 +113,7 @@ def packed_nvlist_out(packed_nvlist, packed_size):
:param bytes packed_nvlist: packed nvlist_t.
:param int packed_size: nvlist_t packed size.
- :return: an `dict` of values representing the data containted by nvlist_t.
+ :return: an `dict` of values representing the data contained by nvlist_t.
:rtype: dict
"""
props = {}
diff --git a/contrib/pyzfs/libzfs_core/exceptions.py b/contrib/pyzfs/libzfs_core/exceptions.py
index f465cd3d9..f8a775433 100644
--- a/contrib/pyzfs/libzfs_core/exceptions.py
+++ b/contrib/pyzfs/libzfs_core/exceptions.py
@@ -77,7 +77,7 @@ class MultipleOperationsFailure(ZFSError):
ZFSError.__str__(self), len(self.errors), self.suppressed_count)
def __repr__(self):
- return "%s(%r, %r, errors=%r, supressed=%r)" % (
+ return "%s(%r, %r, errors=%r, suppressed=%r)" % (
self.__class__.__name__, self.errno, self.message, self.errors,
self.suppressed_count)
@@ -372,7 +372,7 @@ class NoSpace(ZFSError):
class QuotaExceeded(ZFSError):
errno = errno.EDQUOT
- message = "Quouta exceeded"
+ message = "Quota exceeded"
def __init__(self, name):
self.name = name
diff --git a/contrib/pyzfs/libzfs_core/test/test_libzfs_core.py b/contrib/pyzfs/libzfs_core/test/test_libzfs_core.py
index 18306f88e..613d5eccd 100644
--- a/contrib/pyzfs/libzfs_core/test/test_libzfs_core.py
+++ b/contrib/pyzfs/libzfs_core/test/test_libzfs_core.py
@@ -1913,7 +1913,7 @@ class ZFSTest(unittest.TestCase):
filecmp.cmp(
os.path.join(mnt1, name), os.path.join(mnt2, name), False))
- # This test case fails unless unless a patch from
+ # This test case fails unless a patch from
# https://clusterhq.atlassian.net/browse/ZFS-20
# is applied to libzfs_core, otherwise it succeeds.
@unittest.skip("fails with unpatched libzfs_core")
@@ -2160,7 +2160,7 @@ class ZFSTest(unittest.TestCase):
with streams(srcfs, src1, src2) as (_, (full, incr)):
lzc.lzc_receive(dst1, full.fileno())
lzc.lzc_snapshot([dst_snap])
- # becase cannot receive incremental and set origin on a non-clone
+ # because cannot receive incremental and set origin on a non-clone
with self.assertRaises(lzc_exc.BadStream):
lzc.lzc_receive(dst2, incr.fileno(), origin=dst1)
@@ -2375,7 +2375,7 @@ class ZFSTest(unittest.TestCase):
for i in range(1024):
f.write(b'x' * 1024)
lzc.lzc_receive(dst, stream.fileno(), force=True)
- # The temporary file dissappears and any access, even close(),
+ # The temporary file disappears and any access, even close(),
# results in EIO.
self.assertFalse(os.path.exists(f.name))
with self.assertRaises(IOError):
@@ -2462,7 +2462,7 @@ class ZFSTest(unittest.TestCase):
for i in range(1024):
f.write(b'x' * 1024)
lzc.lzc_receive(dst2, incr.fileno(), force=True)
- # The temporary file dissappears and any access, even close(),
+ # The temporary file disappears and any access, even close(),
# results in EIO.
self.assertFalse(os.path.exists(f.name))
with self.assertRaises(IOError):