]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Fix common misspellings from codespell project
authorYi Zhang <yi.zhang@redhat.com>
Thu, 2 Nov 2023 07:01:27 +0000 (15:01 +0800)
committerDaniel Wagner <wagi@monom.org>
Thu, 2 Nov 2023 17:52:03 +0000 (18:52 +0100)
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
[dwagner: dropped auto generated documentation
          dropped ccan changed]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
32 files changed:
Documentation/nvme-phy-rx-eom-log.txt
Documentation/nvme-wdc-namespace-resize.txt
README.md
completions/_nvme
completions/bash-nvme-completion.sh
nvme-builtin.h
nvme-print-json.c
nvme-rpmb.c
nvme.c
plugins/intel/intel-nvme.c
plugins/memblaze/memblaze-nvme.c
plugins/memblaze/memblaze-utils.h
plugins/micron/micron-nvme.c
plugins/ocp/ocp-utils.h
plugins/scaleflux/sfx-nvme.c
plugins/seagate/seagate-nvme.c
plugins/solidigm/solidigm-telemetry/config.c
plugins/solidigm/solidigm-telemetry/data-area.c
plugins/wdc/wdc-nvme.c
plugins/wdc/wdc-utils.c
plugins/ymtc/ymtc-nvme.c
plugins/ymtc/ymtc-utils.h
plugins/zns/zns.c
plugins/zns/zns.h
scripts/build.sh
scripts/release.sh
tests/meson.build
tests/nvme_attach_detach_ns_test.py
tests/nvme_create_max_ns_test.py
tests/nvme_format_test.py
tests/nvme_get_features_test.py
tests/nvme_test.py

index d5e0235bedd8bdbdc85e9f22b456071db2b56e2d..8a311313a3f9a51e8a4d99dfaa208fd2ce77b4ab 100644 (file)
@@ -32,7 +32,7 @@ OPTIONS
 
 -c <id>::
 --controller=<id>::
-       Controller ID of the controller associated wit the PCIe port to be
+       Controller ID of the controller associated with the PCIe port to be
        measured.
 
 -o <fmt>::
index dcc616ff2c6c313bddd24c6c0437b5ad7a1a9680..42994adaa9f1e002c9832cba7361f39ce85631bd 100644 (file)
@@ -8,7 +8,7 @@ nvme-wdc-namespace-resize - Resizes the device's namespace.
 SYNOPSIS
 --------
 [verse]
-'nvme wdc namespace-resize' <device> [--nsid=<NAMSPACE ID>, -n <NAMSPACE ID>]
+'nvme wdc namespace-resize' <device> [--nsid=<NAMESPACE ID>, -n <NAMSPACE ID>]
                        [--op_option=<OP OPTION>, -o <OP OPTION>] 
 
 DESCRIPTION
@@ -24,8 +24,8 @@ Results for any other device are undefined.
 
 OPTIONS
 -------
--n <NAMSPACE ID>::
---namespace-id=<NAMSPACE_ID>::
+-n <NAMESPACE ID>::
+--namespace-id=<NAMESPACE_ID>::
        Namespace ID; ID of the namespace to resize
 
 -o <OP OPTION>::
index 04781e7f9f64801700de0a4a59b227741c227e56..dd035f07439007e0d6aed473bf16046ce4bd634b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -251,7 +251,7 @@ global resources among various components. For example, when executing
 `blktests` for the FC transport, the `nvme-cli` udev rules can be triggered. To
 prevent interference with a test, `blktests` can create a JSON configuration
 file in `/run/nvme` to inform `nvme-cli` that it should not perform any actions
-trigged from the udev context. This behavior can be controlled using the
+triggered from the udev context. This behavior can be controlled using the
 `--context` argument.
 
 For example a `blktests` volatile configuration could look like:
index a9bd6e2b362cbf30671197c451a34bb41301b8e5..3bd8afc3af47f3024fa1013047e7fc13136b4e08 100644 (file)
@@ -36,7 +36,7 @@ _nvme () {
        'get-log:retrieve any log in raw format'
        'predictable-lat-log:retrieve predictable latency per nvmset log'
        'pred-lat-event-agg-log:retrieve predictable latency event aggregate log'
-       'persistent-event-log:retrieve presistent event log'
+       'persistent-event-log:retrieve persistent event log'
        'telemetry-log:retrieve telemetry log'
        'fw-log:retrieve fw log'
        'changed-ns-list-log:retrieve changed namespaces log'
index 2ae4a1e26710be514b3c8f59f53c818e725f3ae2..f431a70431d0dae7187850d022348da8805e75ec 100644 (file)
@@ -1430,7 +1430,7 @@ _nvme_subcmds () {
                        set-dssd-power-state-feature"
        )
 
-       # Associative array mapping plugins to coresponding option completions
+       # Associative array mapping plugins to corresponding option completions
        typeset -Ar _plugin_funcs=(
                [intel]="plugin_intel_opts"
                [amzn]="plugin_amzn_opts"
index 2055d0ee5f7cc0f9ab4346fb183eae595267403e..2d2bead38b477ef63eaa84626455f725ca5fb8c7 100644 (file)
@@ -44,7 +44,7 @@ COMMAND_LIST(
        ENTRY("endurance-log", "Retrieve Endurance Group Log, show it", get_endurance_log)
        ENTRY("predictable-lat-log", "Retrieve Predictable Latency per Nvmset Log, show it", get_pred_lat_per_nvmset_log)
        ENTRY("pred-lat-event-agg-log", "Retrieve Predictable Latency Event Aggregate Log, show it", get_pred_lat_event_agg_log)
-       ENTRY("persistent-event-log", "Retrieve Presistent Event Log, show it", get_persistent_event_log)
+       ENTRY("persistent-event-log", "Retrieve Persistent Event Log, show it", get_persistent_event_log)
        ENTRY("endurance-event-agg-log", "Retrieve Endurance Group Event Aggregate Log, show it", get_endurance_event_agg_log)
        ENTRY("lba-status-log", "Retrieve LBA Status Information Log, show it", get_lba_status_log)
        ENTRY("resv-notif-log", "Retrieve Reservation Notification Log, show it", get_resv_notif_log)
index 47961d74495075b45085872b092209d826d08dd5..b80bdb402393ca8fd55d615293b0e63f46c5772e 100644 (file)
@@ -3312,7 +3312,7 @@ static void json_output_status(int status)
                json_object_add_value_string(root, "type", "nvme-mi");
                break;
        default:
-               json_object_add_value_string(root, "type", "unknow");
+               json_object_add_value_string(root, "type", "unknown");
                break;
        }
 
index 3dbbbd3822067717978fea8dad4f5d3f47e84723..345e6ea53f16f2b0f5b49c01884308384df05737 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
- * Copyright (C) 2020 Micron Techology Inc. All rights reserved.
+ * Copyright (C) 2020 Micron Technology Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -68,7 +68,7 @@ unsigned char *create_hash(const char *algo,
                .salg_name = { 0 }
        };
 
-       /* copy algorith name */
+       /* copy algorithm name */
        if (strlen(algo) > sizeof(provider_sa.salg_name)) {
                fprintf(stderr, "%s: algorithm name overflow", __func__);
                return hash;
@@ -608,7 +608,7 @@ static int rpmb_program_auth_key(int fd, unsigned char target,
                goto out;
        }
 
-       /* re-use response buffer */
+       /* reuse response buffer */
        memset(rsp, 0, rsp_size);
        err = recv_rpmb_rsp(fd, req->target, rsp_size, rsp);
        if (err != 0) {
@@ -1005,7 +1005,7 @@ int rpmb_cmd_option(int argc, char **argv, struct command *cmd, struct plugin *p
                                                  cfg.blocks,
                                                  (regs.access_size + 1));
                        if (err > 0 && msg_buf != NULL) {
-                               printf("Writting %d bytes to file %s\n",
+                               printf("Writing %d bytes to file %s\n",
                                        err * 512, cfg.msgfile);
                                write_file(msg_buf, err * 512, NULL,
                                           cfg.msgfile, NULL);
diff --git a/nvme.c b/nvme.c
index b9aea5e8b559b123460159f495e397cde8527bfa..7ec03ece9822fd3e6f56194e45c2a2096a46b46f 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -299,7 +299,7 @@ int map_log_level(int verbose, bool quiet)
        int log_level;
 
        /*
-        * LOG_NOTICE is unsued thus the user has to provide two 'v' for getting
+        * LOG_NOTICE is unused thus the user has to provide two 'v' for getting
         * any feedback at all. Thus skip this level
         */
        verbose++;
@@ -7297,9 +7297,9 @@ static int submit_io(int opcode, char *command, const char *desc, int argc, char
        ms = ns->lbaf[lba_index].ms;
        if (NVME_FLBAS_META_EXT(ns->flbas)) {
                /*
-                * No meta data is transfered for PRACT=1 and MD=8:
+                * No meta data is transferred for PRACT=1 and MD=8:
                 *   5.2.2.1 Protection Information and Write Commands
-                *   5.2.2.2 Protection Informatio and Read Commands
+                *   5.2.2.2 Protection Information and Read Commands
                 */
                if (!(cfg.prinfo == 0x1 && ms == 8))
                        logical_block_size += ms;
index 3b2f97357c1e477e8148620ea779d4d5d38629b5..378ecc0348011592aed10b091059cad83fa2bd8a 100644 (file)
@@ -1086,7 +1086,7 @@ static int get_lat_stats_log(int argc, char **argv, struct command *cmd, struct
                };
                err = nvme_get_features(&args);
                if (err) {
-                       fprintf(stderr, "Quering thresholds failed. ");
+                       fprintf(stderr, "Querying thresholds failed. ");
                        nvme_show_status(err);
                        goto close_dev;
                }
index b7d236c83cbb25b54a6301791519eb1b8bd8a239..e47aedd4579cc98031ba363acd8eed846c9b8bd5 100644 (file)
@@ -646,7 +646,7 @@ static int glp_high_latency_show_bar(FILE *fdi, int print)
 }
 
 /*
- * High latency log page definiton
+ * High latency log page definition
  * Total 32 bytes
  */
 struct log_page_high_latency {
index dd89189f49e3daa80de3f7d9fa4503dd4c2c614d..8914f955b2444c87b1b04269654a650fac24ed25 100644 (file)
@@ -34,7 +34,7 @@
 #define RAISIN_SI_VD_THERMAL_THROTTLE_TIME_ID          0xEB
 #define RAISIN_SI_VD_FLASH_MEDIA_ERROR_ID              0xED
 
-/* Raisin Addtional smart internal ID */
+/* Raisin Additional smart internal ID */
 typedef enum
 {
        /* smart attr following intel */
@@ -154,7 +154,7 @@ struct nvme_p4_smart_log
        /**
         * change 512 to 4096.
         * because micron's getlogpage request,the size of many commands have changed to 4k.
-        * request size > user malloc size,casuing parameters that are closed in momery are dirty.
+        * request size > user malloc size,casuing parameters that are closed in memery are dirty.
         */
        __u8 resv[SMART_INFO_NEW_SIZE - sizeof(struct nvme_p4_smart_log_item) * NR_SMART_ITEMS];
 };
index 195c971e840cf52024046d6d840782dc538e4ba7..c921827021e08b1de87851c74d9584f618f4f4c3 100644 (file)
@@ -2221,7 +2221,7 @@ static int display_fw_activate_entry(int entry_count, struct fw_activation_histo
        else
                sprintf(ptr, "| pass");
 
-       /* replace all null charecters with spaces */
+       /* replace all null characters with spaces */
        ptr = formatted_entry;
        while (index < entry_size) {
                if (ptr[index] == '\0')
@@ -2289,7 +2289,7 @@ static int micron_fw_activation_history(int argc, char **argv, struct command *c
                goto out;
        }
 
-       /* check if we have atleast one entry to print */
+       /* check if we have at least one entry to print */
        struct micron_fw_activation_history_table *table =
                           (struct micron_fw_activation_history_table *)logC2;
 
@@ -2696,7 +2696,7 @@ static int micron_ocp_smart_health_logs(int argc, char **argv, struct command *c
 
        /* check for models that support 0xC0 log */
        if (eModel != M51CX) {
-               printf("Unsupported drive model for vs-smart-add-log commmand\n");
+               printf("Unsupported drive model for vs-smart-add-log command\n");
                err = -1;
                goto out;
        }
index a96216905de598e10a66ebc7f42e7d206422ccfd..76a4b9418473f662cfa2c04c8fd8bb8939571a7c 100644 (file)
@@ -10,7 +10,7 @@
 /**
  * ocp_get_uuid_index() - Get OCP UUID index
  * @dev:       nvme device
- * @index:     integer ponter to here to save the index
+ * @index:     integer pointer to here to save the index
  * @result:    The command completion result from CQE dword0
  *
  * Return: Zero if nvme device has UUID list log page, or result of get uuid list otherwise.
index e7f3b9907aa61abe582562fbf43cc5f47dc44d7f..e74764e472fb28b3124736ed5703490d86ba2a12 100644 (file)
@@ -881,7 +881,7 @@ static int change_sanity_check(int fd, __u64 trg_in_4k, int *shrink)
        if (trg_in_4k < provisoned_cap_4k ||
            trg_in_4k > ((__u64)provisoned_cap_4k * 4)) {
                fprintf(stderr,
-                       "WARNING: Only support 1.0~4.0 x provisoned capacity!\n");
+                       "WARNING: Only support 1.0~4.0 x provisioned capacity!\n");
                if (trg_in_4k < provisoned_cap_4k)
                        fprintf(stderr,
                                "WARNING: The target capacity is less than 1.0 x provisioned capacity!\n");
@@ -924,7 +924,7 @@ static int change_sanity_check(int fd, __u64 trg_in_4k, int *shrink)
  *
  * @param str, prompt string
  *
- * @return 0, cancled; 1 confirmed
+ * @return 0, canceled; 1 confirmed
  */
 static int sfx_confirm_change(const char *str)
 {
@@ -936,7 +936,7 @@ static int sfx_confirm_change(const char *str)
        fprintf(stderr, "Confirm Y/y, Others cancel:\n");
        confirm = (unsigned char)fgetc(stdin);
        if (confirm != 'y' && confirm != 'Y') {
-               fprintf(stderr, "Cancled.\n");
+               fprintf(stderr, "Canceled.\n");
                return 0;
        }
        fprintf(stderr, "Sending operation ...\n");
index 0f4f59dc9213ce1c973d9e5cde27226c55d26ce6..887e5bc05b8da154813f8d1c332c34729a0e49b7 100644 (file)
@@ -926,7 +926,7 @@ static int vs_smart_log(int argc, char **argv, struct command *cmd, struct plugi
        /**
         * Here we should identify if the drive is a Panthor or Jaguar.
         * Here we need to extract the model no from ctrl-id abd use it
-        * to deternine drive family.
+        * to determine drive family.
         */
 
        err = nvme_identify_ctrl(dev_fd(dev), &ctrl);
@@ -1299,7 +1299,7 @@ static void print_stx_vs_fw_activate_history(stx_fw_activ_history_log_page fwAct
        char buf[80];
 
        if (fwActivHis.numValidFwActHisEnt > 0) {
-               printf("\n\nSeagate FW Activation Histry :\n");
+               printf("\n\nSeagate FW Activation History :\n");
                printf("%-9s %-21s %-7s %-13s %-9s %-5s %-15s %-9s\n", "Counter ", "      Timestamp ", " PCC ", "Previous FW ", "New FW ", "Slot", "Commit Action", "Result");
 
                for (i = 0; i < fwActivHis.numValidFwActHisEnt; i++) {
@@ -1406,7 +1406,7 @@ static int stx_vs_fw_activate_history(int argc, char **argv, struct command *cmd
        }
 
        if (strcmp(cfg.output_format, "json"))
-               printf("Seagate FW Activation Histry Information :\n");
+               printf("Seagate FW Activation History Information :\n");
 
        err = nvme_get_log_simple(dev_fd(dev), 0xC2, sizeof(fwActivHis), &fwActivHis);
        if (!err) {
index cc2a8bb0ed5360a2312e72e881a381ebd1dd2f8d..eceeede5d276b05459ccc4d3dd76b94b35ccaf25 100644 (file)
@@ -9,7 +9,7 @@
 #include <string.h>
 #include "config.h"
 
-// max 16 bit unsigned integer nummber 65535
+// max 16 bit unsigned integer number 65535
 #define MAX_16BIT_NUM_AS_STRING_SIZE  6
 
 #define OBJ_NAME_PREFIX "UID_"
index 0cfa56c5794f320a7e67b6f6f7175225b4a4640e..14d612bcf2e5f820f50afbc0af1480d24d327a61 100644 (file)
@@ -57,7 +57,7 @@ static bool telemetry_log_get_value(const struct telemetry_log *tl,
                char err_msg[MAX_WARNING_SIZE];
 
                snprintf(err_msg, MAX_WARNING_SIZE,
-                   "Value crossing 64 bit, byte aligned bounday, not supported. size_bit=%u, offset_bit_from_byte=%u.",
+                   "Value crossing 64 bit, byte aligned boundary, not supported. size_bit=%u, offset_bit_from_byte=%u.",
                    size_bit, offset_bit_from_byte);
                *val_obj = json_object_new_string(err_msg);
 
index b66c1c759253789bca17eb747b686d947296cf4d..2444d36b4fd25cd4b4f50d92aa0ad5d159463861 100644 (file)
@@ -1339,7 +1339,7 @@ struct __packed wdc_fw_act_history_log_format_c2 {
 struct __packed wdc_ocp_C4_dev_cap_log {
        __le16  num_pcie_ports;                        /* 0000 - Number of PCI Express Ports         */
        __le16  oob_mgmt_support;                      /* 0002 - OOB Management Interfaces Supported */
-       __le16  wrt_zeros_support;                     /* 0004 - Write Zeros Commmand Support        */
+       __le16  wrt_zeros_support;                     /* 0004 - Write Zeros Command Support        */
        __le16  sanitize_support;                      /* 0006 - Sanitize Command Support            */
        __le16  dsm_support;                           /* 0008 - Dataset Management Command Support  */
        __le16  wrt_uncor_support;                     /* 0010 - Write Uncorrectable Command Support */
@@ -1674,7 +1674,7 @@ static __u64 wdc_get_drive_capabilities(nvme_root_t r, struct nvme_dev *dev)
                                                              WDC_DEV_CAP_LOG_ID))
                                capabilities |= WDC_DRIVE_CAP_OCP_C4_LOG_PAGE;
 
-                       /* verify the 0xC5 (OCP Unsupported Requirments) log page is supported */
+                       /* verify the 0xC5 (OCP Unsupported Requirements) log page is supported */
                        if (wdc_nvme_check_supported_log_page(r, dev,
                                                              WDC_UNSUPPORTED_REQS_LOG_ID))
                                capabilities |= WDC_DRIVE_CAP_OCP_C5_LOG_PAGE;
@@ -1763,7 +1763,7 @@ static __u64 wdc_get_drive_capabilities(nvme_root_t r, struct nvme_dev *dev)
                        if (wdc_nvme_check_supported_log_page(r, dev, WDC_DEV_CAP_LOG_ID))
                                capabilities |= WDC_DRIVE_CAP_OCP_C4_LOG_PAGE;
 
-                       /* verify the 0xC5 (OCP Unsupported Requirments) log page is supported */
+                       /* verify the 0xC5 (OCP Unsupported Requirements) log page is supported */
                        if (wdc_nvme_check_supported_log_page(r, dev, WDC_UNSUPPORTED_REQS_LOG_ID))
                                capabilities |= WDC_DRIVE_CAP_OCP_C5_LOG_PAGE;
 
@@ -2099,7 +2099,7 @@ bool wdc_get_dev_mng_log_entry(__u32 log_length, __u32 entry_id,
                        remaining_len = 0;
                        valid_log = false;
 
-                       /* The struture is invalid, so any match that was found is invalid. */
+                       /* The structure is invalid, so any match that was found is invalid. */
                        *p_p_found_log_entry = NULL;
                } else {
                        /* Structure must have at least one valid entry to be considered valid */
@@ -4680,7 +4680,7 @@ static void wdc_print_dev_cap_log_normal(struct wdc_ocp_C4_dev_cap_log *log_data
        printf("  Minimum DSSD Power State              : 0x%x\n", le16_to_cpu(log_data->min_dssd_ps));
 
        for (j = 0; j < WDC_OCP_C4_NUM_PS_DESCR; j++)
-               printf("  DSSD Power State %d Desriptor : 0x%x\n", j, log_data->dssd_ps_descr[j]);
+               printf("  DSSD Power State %d Descriptor        : 0x%x\n", j, log_data->dssd_ps_descr[j]);
 
        printf("  Log Page Version                      : 0x%x\n", le16_to_cpu(log_data->log_page_version));
        printf("  Log page GUID                         : 0x");
@@ -10959,7 +10959,7 @@ static int wdc_do_vs_nand_stats_sn810_2(struct nvme_dev *dev, char *format)
                                           NVME_NSID_ALL);
 
        if (ret) {
-               fprintf(stderr, "ERROR: WDC: %s : Failed to retreive NAND stats\n", __func__);
+               fprintf(stderr, "ERROR: WDC: %s : Failed to retrieve NAND stats\n", __func__);
                goto out;
        } else {
                fmt = validate_output_format(format);
@@ -11003,7 +11003,7 @@ static int wdc_do_vs_nand_stats(struct nvme_dev *dev, char *format)
        ret = nvme_get_log_simple(dev_fd(dev), WDC_NVME_NAND_STATS_LOG_ID,
                                  WDC_NVME_NAND_STATS_SIZE, (void *)output);
        if (ret) {
-               fprintf(stderr, "ERROR: WDC: %s : Failed to retreive NAND stats\n", __func__);
+               fprintf(stderr, "ERROR: WDC: %s : Failed to retrieve NAND stats\n", __func__);
                goto out;
        } else {
                fmt = validate_output_format(format);
@@ -11279,13 +11279,13 @@ static int wdc_vs_drive_info(int argc, char **argv,
                                rev = (double)(cpu_to_le32(result) & 0x0000ffff);
 
                                if (fmt == NORMAL) {
-                                       printf("Drive HW Revison: %4.1f\n", (.1 * rev));
+                                       printf("Drive HW Revision: %4.1f\n", (.1 * rev));
                                        printf("FTL Unit Size:     0x%x KB\n", size);
                                        printf("Customer SN:        %-.*s\n", (int)sizeof(ctrl.sn), &ctrl.sn[0]);
                                } else if (fmt == JSON) {
                                        root = json_create_object();
                                        sprintf(rev_str, "%4.1f", (.1 * rev));
-                                       json_object_add_value_string(root, "Drive HW Revison", rev_str);
+                                       json_object_add_value_string(root, "Drive HW Revision", rev_str);
 
                                        json_object_add_value_int(root, "FTL Unit Size", le16_to_cpu(size));
                                        wdc_StrFormat(formatter, sizeof(formatter), &ctrl.sn[0], sizeof(ctrl.sn));
index 3b607727b1c1c463c7ab2014f2d55cbe7227560e..efcfe4b65f30c12ff2ae28956dc0929990c42405 100644 (file)
@@ -133,8 +133,8 @@ end:
 /**
  * Compares the strings ignoring their cases.
  *
- * @param pcSrc Points to a null terminated string for comapring.
- * @param pcDst Points to a null terminated string for comapring.
+ * @param pcSrc Points to a null terminated string for comparing.
+ * @param pcDst Points to a null terminated string for comparing.
  *
  * @returns zero if the string matches or
  *          1 if the pcSrc string is lexically higher than pcDst or
index 1f99a647984d31ba30a7a091ad49758596c8acf4..5568c80f506a179e75116a10ac0e9f63d29e9bba 100644 (file)
@@ -54,7 +54,7 @@ static int show_ymtc_smart_log(struct nvme_dev *dev, __u32 nsid,
        /* Table Title */
        printf("Additional Smart Log for NVME device:%s namespace-id:%x\n",
               dev->name, nsid);
-       /* Clumn Name*/
+       /* Column Name*/
        printf("key                               normalized raw\n");
        /* 00 SI_VD_PROGRAM_FAIL */
        get_ymtc_smart_info(smart, SI_VD_PROGRAM_FAIL, nm, raw);
index 39f79cb5a9b688afbd38076d752e07e0608a508b..e9a357251312cc75cc2751e641b6ad1305655f0b 100644 (file)
@@ -34,7 +34,7 @@ typedef unsigned char           u8;
 #define SI_VD_THERMAL_THROTTLE_TIME_ID               0xEB
 #define SI_VD_FLASH_MEDIA_ERROR_ID                   0xED
 
-/* Addtional smart internal ID */
+/* Additional smart internal ID */
 typedef enum
 {
     /* smart attr following intel */
index ec62fd050b4965d412e0b31c58061e56f987a70d..bb13135a716dc8222e54f6d92e0e1d72ce94456d 100644 (file)
@@ -560,7 +560,7 @@ static int set_zone_desc(int argc, char **argv, struct command *cmd, struct plug
        const char *desc = "Set Zone Descriptor Extension\n";
        const char *zslba = "starting LBA of the zone for this command";
        const char *zrwaa = "Allocate Zone Random Write Area to zone";
-       const char *data = "optional file for zone extention data (default stdin)";
+       const char *data = "optional file for zone extension data (default stdin)";
        const char *timeout = "timeout value, in milliseconds";
 
        int ffd = STDIN_FILENO, err;
@@ -603,7 +603,7 @@ static int set_zone_desc(int argc, char **argv, struct command *cmd, struct plug
 
        if (!data_len || data_len < 0) {
                fprintf(stderr,
-                       "zone format does not provide descriptor extention\n");
+                       "zone format does not provide descriptor extension\n");
                errno = EINVAL;
                err = -1;
                goto close_dev;
index 77bfdd66abfc94d9f2bf7400df5d14bdf506fd39..43c4ecd1b075f4dbcf0c8280cbc7f42daee56160 100644 (file)
@@ -15,7 +15,7 @@ PLUGIN(NAME("zns", "Zoned Namespace Command Set", NVME_VERSION),
                ENTRY("report-zones", "Report zones associated to a Zoned Namespace", report_zones)
                ENTRY("reset-zone", "Reset one or more zones", reset_zone)
                ENTRY("close-zone", "Close one or more zones", close_zone)
-               ENTRY("finish-zone", "Finishe one or more zones", finish_zone)
+               ENTRY("finish-zone", "Finish one or more zones", finish_zone)
                ENTRY("open-zone", "Open one or more zones", open_zone)
                ENTRY("offline-zone", "Offline one or more zones", offline_zone)
                ENTRY("set-zone-desc", "Attach zone descriptor extension data to a zone", set_zone_desc)
index 07b7aa83e280fcfbb07083c555e9c9b29e24e1c8..449483562619b13de0343b45c1f9d687a53c2f95 100755 (executable)
@@ -17,7 +17,7 @@ usage() {
     echo "configs with meson:"
     echo "  [default]           default settings"
     echo "  fallback            download all dependencies"
-    echo "                      and build them as shared libaries"
+    echo "                      and build them as shared libraries"
     echo "  cross               use cross toolchain to build"
     echo "  coverage            build coverage report"
     echo "  appimage            build AppImage target"
index dad3f250ed153440cd4da20d9dd76a864b1d0c23..d2cbb0855ccd85b4cc9549b4daa3275811b78129 100755 (executable)
@@ -60,7 +60,7 @@ cd "$(git rev-parse --show-toplevel)" || exit 1
 if [[ -f subprojects/libnvme.wrap ]]; then
     git -C subprojects/libnvme fetch --all
 
-    # extract the vesion string from libnvme by using the ref
+    # extract the version string from libnvme by using the ref
     # defined in libnvme.wrap.
     libnvme_ref=$(sed -n "s/revision = \([0-9a-z]\+\)/\1/p" subprojects/libnvme.wrap)
     libnvme_VERSION=$(git -C subprojects/libnvme describe "${libnvme_ref}")
@@ -94,7 +94,7 @@ if [ -d "Documentation" ]; then
 elif [ -d "doc" ]; then
     doc_dir="doc"
 else
-    echo "documenation directory not found"
+    echo "documentation directory not found"
     exit 1
 fi
 
index 90f1a688b52f63097872ec0658693575be2f7b21..f8c6aa2260a8a793215d12d476c5e4d2b100b5b7 100644 (file)
@@ -95,5 +95,5 @@ if autopep8.found() and isort.found()
         command : [python, linter_script, 'format'],
     )
 else
-    message('autopep8 or isort not found. Python formating disabled')
+    message('autopep8 or isort not found. Python formatting disabled')
 endif
index 07c118fae7c59700b73c82de3705ed55b1a878b0..075f211a63ea59213a50376f3f5f7af2be5deded 100644 (file)
@@ -64,7 +64,7 @@ class TestNVMeAttachDetachNSCmd(TestNVMe):
         Post Section for TestNVMeAttachDetachNSCmd
 
             - Create primary namespace.
-            - Atttach it to controller.
+            - Attach it to controller.
             - Call super class's destructor.
         """
         self.assertEqual(self.create_and_validate_ns(self.default_nsid,
index 51797111b45055291e5715c0257a93aa0f6b36ee..bda93e196310e8a13772e72d75b656ac8c85aca7 100644 (file)
@@ -66,7 +66,7 @@ class TestNVMeCreateMaxNS(TestNVMe):
         Post Section for TestNVMeAttachDetachNSCmd
 
             - Create primary namespace.
-            - Atttach it to controller.
+            - Attach it to controller.
             - Call super class's destructor.
         """
         self.assertEqual(self.create_and_validate_ns(self.default_nsid,
index 68e5a2f8ce32199c35990ffb19b9a80d069aca2e..40635c155ef12d895bc6f595357254b5690ad9a0 100644 (file)
@@ -81,7 +81,7 @@ class TestNVMeFormatCmd(TestNVMe):
         Post Section for TestNVMeFormatCmd
 
             - Create primary namespace.
-            - Atttach it to controller.
+            - Attach it to controller.
             - Call super class's destructor.
         """
         self.assertEqual(self.create_and_validate_ns(self.default_nsid,
index 784f2bee0cdbbc0a53eeaad900b445eb2f104110..974fc347c849e2eecdc21196b33aa14086f59280 100644 (file)
@@ -47,7 +47,7 @@ class TestNVMeGetMandatoryFeatures(TestNVMe):
         - Attributes:
               - feature_id_list : list of the mandatory features.
               - get_vector_list_cmd : vector list collection for 09h.
-              - vector_list_len : numer of the interrupt vectors.
+              - vector_list_len : number of the interrupt vectors.
     """
 
     def setUp(self):
index d5eca180ddf70f72c4cf8092fa5d2b1e487432fa..e76193da787d4ea10a070743e78076e1b8f6c347 100644 (file)
@@ -39,7 +39,7 @@ from nvme_test_logger import TestNVMeLogger
 class TestNVMe(unittest.TestCase):
 
     """
-    Represents a testcase, each testcase shuold inherit this
+    Represents a testcase, each testcase should inherit this
     class or appropriate subclass which is a child of this class.
 
     Common utility functions used in various testcases.
@@ -70,7 +70,7 @@ class TestNVMe(unittest.TestCase):
             shutil.rmtree(self.log_dir, ignore_errors=True)
 
     def validate_pci_device(self):
-        """ Validate underlaying device belogs to pci subsystem.
+        """ Validate underlying device belongs to pci subsystem.
             - Args:
                 - None
             - Returns:
@@ -162,7 +162,7 @@ class TestNVMe(unittest.TestCase):
         return ctrl_id
 
     def get_ns_list(self):
-        """ Wrapper for extrating the namespace list.
+        """ Wrapper for extracting the namespace list.
             - Args:
                 - None
             - Returns:
@@ -181,7 +181,7 @@ class TestNVMe(unittest.TestCase):
         return ns_list
 
     def get_max_ns(self):
-        """ Wrapper for extracting maximum number of namspaces supported.
+        """ Wrapper for extracting maximum number of namespaces supported.
             - Args:
                 - None
             - Returns: