]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
doc: Fix spelling mistakes found by lintian
authorBenjamin Drung <benjamin.drung@canonical.com>
Thu, 10 Nov 2022 15:43:52 +0000 (16:43 +0100)
committerDaniel Wagner <dwagner@suse.de>
Wed, 16 Nov 2022 07:57:21 +0000 (08:57 +0100)
lintian complains about following spelling mistakes in libnvme 1.2:

```
I: libnvme1: spelling-error-in-binary commmand command [usr/lib/x86_64-linux-gnu/libnvme.so.1.2.0]
I: libnvme1: spelling-error-in-binary connnected connected [usr/lib/x86_64-linux-gnu/libnvme.so.1.2.0]
I: libnvme-dev: typo-in-manual-page Lenght Length [usr/share/man/man2/nvmf_exat_len.2.gz:15]
I: libnvme-dev: typo-in-manual-page Retreive Retrieve [usr/share/man/man2/nvme_get_feature_length.2.gz:3]
I: libnvme-dev: typo-in-manual-page Retreive Retrieve [usr/share/man/man2/nvme_get_feature_length2.2.gz:3]
I: libnvme-dev: typo-in-manual-page identifers identifiers [usr/share/man/man2/nvme_set_features_host_id.2.gz:3]
I: libnvme-dev: typo-in-manual-page lenght length [usr/share/man/man2/nvmf_exat_len.2.gz:9]
I: libnvme-dev: typo-in-manual-page namepsaces namespaces [usr/share/man/man2/nvme_dev_self_test.2.gz:18]
```

Fix all occurrences of those spelling mistakes.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
doc/rst/ioctl.rst
doc/rst/util.rst
src/nvme/ioctl.h
src/nvme/util.c
src/nvme/util.h

index aaf6b550abfad54899d53befc2c5ceac703bfd7c..9e644f02fcae22ab0ed1a2dff41c9eb907d48546 100644 (file)
@@ -2911,7 +2911,7 @@ The nvme command status if a response was received (see
 
 .. c:function:: int nvme_set_features_host_id (int fd, bool exhid, bool save, __u8 *hostid)
 
-   Set enable extended host identifers feature
+   Set enable extended host identifiers feature
 
 **Parameters**
 
@@ -4307,7 +4307,7 @@ controller and may include testing of the media associated with namespaces.
 The controller may return a response to this command immediately while
 running the self-test in the background.
 
-Set the 'nsid' field to 0 to not include namepsaces in the test. Set to
+Set the 'nsid' field to 0 to not include namespaces in the test. Set to
 0xffffffff to test all namespaces. All other values tests a specific
 namespace, if present.
 
index 87ea9455ab04ecee437369d71d49924190370d35..a0af1a09856609d03caf2de1717adbde02517c95 100644 (file)
@@ -226,7 +226,7 @@ otherwise.
 
 .. c:function:: int nvme_get_feature_length (int fid, __u32 cdw11, __u32 *len)
 
-   Retreive the command payload length for a specific feature identifier
+   Retrieve the command payload length for a specific feature identifier
 
 **Parameters**
 
@@ -248,7 +248,7 @@ recognize :c:type:`fid`.
 
 .. c:function:: int nvme_get_feature_length2 (int fid, __u32 cdw11, enum nvme_data_tfr dir, __u32 *len)
 
-   Retreive the command payload length for a specific feature identifier
+   Retrieve the command payload length for a specific feature identifier
 
 **Parameters**
 
@@ -433,7 +433,7 @@ usage: int x = round_up(13, sizeof(__u32)); // 13 -> 16
 **Parameters**
 
 ``size_t val_len``
-  Value lenght
+  Value length
 
 **Description**
 
@@ -443,7 +443,7 @@ __u32), of the buffer needed to hold the exat value of size
 
 **Return**
 
-Lenght rounded up by 4
+Length rounded up by 4
 
 
 .. c:function:: __u16 nvmf_exat_size (size_t val_len)
index 42a791fc223c93c0299e3c43d93309abb92c5d61..c16e5fe699da750d25a8ff725308aa13b5368220 100644 (file)
@@ -2409,7 +2409,7 @@ int nvme_set_features_sw_progress(int fd, __u8 pbslc, bool save,
                                  __u32 *result);
 
 /**
- * nvme_set_features_host_id() - Set enable extended host identifers feature
+ * nvme_set_features_host_id() - Set enable extended host identifiers feature
  * @fd:                File descriptor of nvme device
  * @exhid:     Enable Extended Host Identifier
  * @save:      Save value across power states
@@ -3389,7 +3389,7 @@ int nvme_sanitize_nvm(struct nvme_sanitize_nvm_args *args);
  * The controller may return a response to this command immediately while
  * running the self-test in the background.
  *
- * Set the 'nsid' field to 0 to not include namepsaces in the test. Set to
+ * Set the 'nsid' field to 0 to not include namespaces in the test. Set to
  * 0xffffffff to test all namespaces. All other values tests a specific
  * namespace, if present.
  *
index e8caa5087e1e8a499ba38ba00599a782d24df2c9..049d949366a01e59b9e000fa42a111d95dae742c 100644 (file)
@@ -325,7 +325,7 @@ static const char * const media_status[] = {
 };
 
 static const char * const path_status[] = {
-       [NVME_SC_ANA_INTERNAL_PATH_ERROR] = "Internal Path Error: An internal error specific to the controller processing the commmand prevented completion",
+       [NVME_SC_ANA_INTERNAL_PATH_ERROR] = "Internal Path Error: An internal error specific to the controller processing the command prevented completion",
        [NVME_SC_ANA_PERSISTENT_LOSS]     = "Asymmetric Access Persistent Loss: The controller is in a persistent loss state with the requested namespace",
        [NVME_SC_ANA_INACCESSIBLE]        = "Asymmetric Access Inaccessible: The controller is in an inaccessible state with the requested namespace",
        [NVME_SC_ANA_TRANSITION]          = "Asymmetric Access Transition: The controller is currently transitioning states with the requested namespace",
@@ -559,7 +559,7 @@ static const char * const libnvme_status[] = {
        [ENVME_CONNECT_INVAL_TR] = "invalid transport type",
        [ENVME_CONNECT_LOOKUP_SUBSYS_NAME] = "failed to lookup subsystem name",
        [ENVME_CONNECT_LOOKUP_SUBSYS] = "failed to lookup subsystem",
-       [ENVME_CONNECT_ALREADY] = "already connnected",
+       [ENVME_CONNECT_ALREADY] = "already connected",
        [ENVME_CONNECT_INVAL] = "invalid arguments/configuration",
        [ENVME_CONNECT_ADDRINUSE] = "hostnqn already in use",
        [ENVME_CONNECT_NODEV] = "invalid interface",
index e72c1569ffa089de004fc00141be65e885d0223e..de7aece77739fb41c4d3678087308aec1a49d408 100644 (file)
@@ -529,13 +529,13 @@ char *startswith(const char *s, const char *prefix);
 
 /**
  * nvmf_exat_len() - Return length rounded up by 4
- * @val_len: Value lenght
+ * @val_len: Value length
  *
  * Return the size in bytes, rounded to a multiple of 4 (e.g., size of
  * __u32), of the buffer needed to hold the exat value of size
  * @val_len.
  *
- * Return: Lenght rounded up by 4
+ * Return: Length rounded up by 4
  */
 static inline __u16 nvmf_exat_len(size_t val_len)
 {