Skip to content

Commit eb7dc8a

Browse files
bdrungdwsuse
authored andcommitted
doc: Fix spelling mistakes found by lintian
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 <[email protected]>
1 parent 7e9f5a2 commit eb7dc8a

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

doc/rst/ioctl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,7 +2911,7 @@ The nvme command status if a response was received (see
29112911
29122912
.. c:function:: int nvme_set_features_host_id (int fd, bool exhid, bool save, __u8 *hostid)
29132913
2914-
Set enable extended host identifers feature
2914+
Set enable extended host identifiers feature
29152915
29162916
**Parameters**
29172917
@@ -4307,7 +4307,7 @@ controller and may include testing of the media associated with namespaces.
43074307
The controller may return a response to this command immediately while
43084308
running the self-test in the background.
43094309
4310-
Set the 'nsid' field to 0 to not include namepsaces in the test. Set to
4310+
Set the 'nsid' field to 0 to not include namespaces in the test. Set to
43114311
0xffffffff to test all namespaces. All other values tests a specific
43124312
namespace, if present.
43134313

doc/rst/util.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ otherwise.
226226
227227
.. c:function:: int nvme_get_feature_length (int fid, __u32 cdw11, __u32 *len)
228228
229-
Retreive the command payload length for a specific feature identifier
229+
Retrieve the command payload length for a specific feature identifier
230230
231231
**Parameters**
232232
@@ -248,7 +248,7 @@ recognize :c:type:`fid`.
248248
249249
.. c:function:: int nvme_get_feature_length2 (int fid, __u32 cdw11, enum nvme_data_tfr dir, __u32 *len)
250250
251-
Retreive the command payload length for a specific feature identifier
251+
Retrieve the command payload length for a specific feature identifier
252252
253253
**Parameters**
254254
@@ -433,7 +433,7 @@ usage: int x = round_up(13, sizeof(__u32)); // 13 -> 16
433433
**Parameters**
434434
435435
``size_t val_len``
436-
Value lenght
436+
Value length
437437
438438
**Description**
439439
@@ -443,7 +443,7 @@ __u32), of the buffer needed to hold the exat value of size
443443
444444
**Return**
445445
446-
Lenght rounded up by 4
446+
Length rounded up by 4
447447
448448
449449
.. c:function:: __u16 nvmf_exat_size (size_t val_len)

src/nvme/ioctl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ int nvme_set_features_sw_progress(int fd, __u8 pbslc, bool save,
24092409
__u32 *result);
24102410

24112411
/**
2412-
* nvme_set_features_host_id() - Set enable extended host identifers feature
2412+
* nvme_set_features_host_id() - Set enable extended host identifiers feature
24132413
* @fd: File descriptor of nvme device
24142414
* @exhid: Enable Extended Host Identifier
24152415
* @save: Save value across power states
@@ -3389,7 +3389,7 @@ int nvme_sanitize_nvm(struct nvme_sanitize_nvm_args *args);
33893389
* The controller may return a response to this command immediately while
33903390
* running the self-test in the background.
33913391
*
3392-
* Set the 'nsid' field to 0 to not include namepsaces in the test. Set to
3392+
* Set the 'nsid' field to 0 to not include namespaces in the test. Set to
33933393
* 0xffffffff to test all namespaces. All other values tests a specific
33943394
* namespace, if present.
33953395
*

src/nvme/util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ static const char * const media_status[] = {
325325
};
326326

327327
static const char * const path_status[] = {
328-
[NVME_SC_ANA_INTERNAL_PATH_ERROR] = "Internal Path Error: An internal error specific to the controller processing the commmand prevented completion",
328+
[NVME_SC_ANA_INTERNAL_PATH_ERROR] = "Internal Path Error: An internal error specific to the controller processing the command prevented completion",
329329
[NVME_SC_ANA_PERSISTENT_LOSS] = "Asymmetric Access Persistent Loss: The controller is in a persistent loss state with the requested namespace",
330330
[NVME_SC_ANA_INACCESSIBLE] = "Asymmetric Access Inaccessible: The controller is in an inaccessible state with the requested namespace",
331331
[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[] = {
559559
[ENVME_CONNECT_INVAL_TR] = "invalid transport type",
560560
[ENVME_CONNECT_LOOKUP_SUBSYS_NAME] = "failed to lookup subsystem name",
561561
[ENVME_CONNECT_LOOKUP_SUBSYS] = "failed to lookup subsystem",
562-
[ENVME_CONNECT_ALREADY] = "already connnected",
562+
[ENVME_CONNECT_ALREADY] = "already connected",
563563
[ENVME_CONNECT_INVAL] = "invalid arguments/configuration",
564564
[ENVME_CONNECT_ADDRINUSE] = "hostnqn already in use",
565565
[ENVME_CONNECT_NODEV] = "invalid interface",

src/nvme/util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,13 +529,13 @@ char *startswith(const char *s, const char *prefix);
529529

530530
/**
531531
* nvmf_exat_len() - Return length rounded up by 4
532-
* @val_len: Value lenght
532+
* @val_len: Value length
533533
*
534534
* Return the size in bytes, rounded to a multiple of 4 (e.g., size of
535535
* __u32), of the buffer needed to hold the exat value of size
536536
* @val_len.
537537
*
538-
* Return: Lenght rounded up by 4
538+
* Return: Length rounded up by 4
539539
*/
540540
static inline __u16 nvmf_exat_len(size_t val_len)
541541
{

0 commit comments

Comments
 (0)