]> git.infradead.org Git - users/hch/nvmetcli.git/commitdiff
fix common misspellings from codespell project
authorYi Zhang <yi.zhang@redhat.com>
Thu, 2 Nov 2023 07:18:51 +0000 (15:18 +0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 3 Nov 2023 09:29:27 +0000 (10:29 +0100)
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Documentation/nvmetcli.txt
nvmet/nvme.py
nvmet/test_nvmet.py
nvmetcli

index 7d6ffda9b266784c97b74805c612be479f1c05b2..43e9f97b72e56158782e6035ce2b3cf0c560d6e1 100644 (file)
@@ -90,7 +90,7 @@ shell mode:
                                   filename this will save as
                                   */etc/nvmet/config.json*.  This file
                                   is in JSON format and can be edited directly
-                                  using a prefered file editor.
+                                  using a preferred file editor.
 | exit                          | Quits interactive configuration shell mode.
 |==================
 
index d170204dbb56712a2ac0693243d43d3ca08909ee..59efdb5b7c1baa3a65d1d569eea07e2cf5eb4053 100644 (file)
@@ -39,7 +39,7 @@ class CFSNotFound(CFSError):
     '''
     The underlying configfs object does not exist. Happens when
     calling methods of an object that is instantiated but have
-    been deleted from congifs, or when trying to lookup an
+    been deleted from configfs, or when trying to lookup an
     object that does not exist.
     '''
     pass
index f8ec232da9592a1a1b727a32b35dc3f6a59cd61c..13e2f6cd09a2424d4276f3529654bb4943d6d090 100644 (file)
@@ -321,7 +321,7 @@ class TestNvmet(unittest.TestCase):
         self.assertEqual(r2, r)
         self.assertEqual(len(list(p.referrals)), 2)
 
-        # non-existant lookup
+        # non-existent lookup
         self.assertRaises(nvme.CFSError, nvme.Referral, p, name="foo",
                           mode='lookup')
 
index 8ee8590621bd7e84a13c100cb5b6ba1952016ea9..d949891f8e9ffe86e06ea245978454c092526bc7 100755 (executable)
--- a/nvmetcli
+++ b/nvmetcli
@@ -128,7 +128,7 @@ class UISubsystemsNode(UINode):
 
     def ui_command_create(self, nqn=None):
         '''
-        Creates a new target. If I{nqn} is ommited, then the new Subsystem
+        Creates a new target. If I{nqn} is omitted, then the new Subsystem
         will be created using a randomly generated NQN.
 
         SEE ALSO
@@ -187,7 +187,7 @@ class UINamespacesNode(UINode):
 
     def ui_command_create(self, nsid=None):
         '''
-        Creates a new namespace. If I{nsid} is ommited, then the next
+        Creates a new namespace. If I{nsid} is omitted, then the next
         available namespace id will be used.
 
         SEE ALSO