NVMe commands, type "nvme help " and hit TAB.
You may also need to uncomment the "enable bash completion in interactive
-shells" part of /etc/bash.bashrc, which hopefully looks somehting like:
+shells" part of /etc/bash.bashrc, which hopefully looks something like:
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
printf(" [7:5] : %#x\tReserved\n", rsvd);
printf(" [4:4] : %#x\tGuard Field of Deallocated Logical Blocks is set to %s\n",
guard, guard ? "CRC of The Value Read" : "0xFFFF");
- printf(" [3:3] : %#x\tDeallocate Bit in the Write Zeroes Commmand is %sSupported\n",
+ printf(" [3:3] : %#x\tDeallocate Bit in the Write Zeroes Command is %sSupported\n",
dwz, dwz ? "" : "Not ");
printf(" [2:0] : %#x\tBytes Read From a Deallocated Logical Block and its Metadata are %s\n", val,
val == 2 ? "0xFF" :
printf("No Boot Partition read operation requested\n");
break;
case 1:
- printf("Boot Partition read in progres\n");
+ printf("Boot Partition read in progress\n");
break;
case 2:
printf("Boot Partition read completed successfully\n");
if (err) {
fprintf(stderr, "NVMe Status:%s(%x)\n",
nvme_status_to_string(err), err);
- fprintf(stderr, "Failed to aquire telemetry header %d!\n", err);
+ fprintf(stderr, "Failed to acquire telemetry header %d!\n", err);
close(output);
goto free_mem;
}
while (offset != full_size) {
err = nvme_get_telemetry_log(fd, page_log, 0, cfg.ctrl_init, bs, offset);
if (err) {
- fprintf(stderr, "Failed to aquire full telemetry log!\n");
+ fprintf(stderr, "Failed to acquire full telemetry log!\n");
fprintf(stderr, "NVMe Status:%s(%x)\n",
nvme_status_to_string(err), err);
break;
static int ns_descs(int argc, char **argv, struct command *cmd, struct plugin *plugin)
{
const char *desc = "Send Namespace Identification Descriptors command to the "\
- "given device, returns the namespace identifcation descriptors "\
+ "given device, returns the namespace identification descriptors "\
"of the specific namespace in either human-readable or binary format.";
const char *raw_binary = "show infos in binary format";
const char *namespace_id = "identifier of desired namespace";
unsigned int ns_name;
unsigned int nguid;
unsigned int ns_id;
- unsigned int useage;
+ unsigned int usage;
unsigned int array_name;
};
element_len.ns_name, element_len.ns_name, "NS Name",
element_len.nguid, element_len.nguid, "Nguid",
element_len.ns_id, element_len.ns_id, "NS ID",
- element_len.useage, element_len.useage, "Usage",
+ element_len.usage, element_len.usage, "Usage",
element_len.array_name, element_len.array_name, "Array Name");
printf("%-.*s %-.*s %-.*s %-.*s %-.*s %-.*s\n",
element_len.node, dash, element_len.ns_name, dash,
element_len.nguid, dash, element_len.ns_id, dash,
- element_len.useage, dash, element_len.array_name, dash);
+ element_len.usage, dash, element_len.array_name, dash);
}
static void huawei_print_list_item(struct huawei_list_item list_item,
element_len.ns_name, element_len.ns_name, list_item.ns_name,
element_len.nguid, element_len.nguid, nguid_buf,
element_len.ns_id, list_item.nsid,
- element_len.useage, element_len.useage, usage,
+ element_len.usage, element_len.usage, usage,
element_len.array_name, element_len.array_name, list_item.array_name);
}
element_len.node = 16;
element_len.nguid = 2 * sizeof(list_items->ns.nguid) + 1;
element_len.ns_id = 9;
- element_len.useage = 26;
+ element_len.usage = 26;
element_len.ns_name = huawei_get_ns_len(list_items, len, MIN_NS_NAME_LEN);
element_len.array_name = huawei_get_array_len(list_items, len, MIN_ARRAY_NAME_LEN);
err = nvme_identify_ctrl(fd, &item->ctrl);
if (err) {
- fprintf(stderr, "Identify Controler failed to %s (%s)\n", dev,
+ fprintf(stderr, "Identify Controller failed to %s (%s)\n", dev,
strerror(err));
return 0;
}
- Attributes:
- data_size : data size to perform IO.
- start_block : starting block of to perform IO.
- - compare_file : data file to use in nvme comapre commmand.
+ - compare_file : data file to use in nvme compare command.
- test_log_dir : directory for logs, temp files.
"""
- Attributes:
- start_block : starting block of to perform IO.
- - compare_file : data file to use in nvme comapre commmand.
+ - compare_file : data file to use in nvme compare command.
- test_log_dir : directory for logs, temp files.
"""
def __init__(self):
def attach_ns(self, ctrl_id, ns_id):
""" Wrapper for attaching the namespace.
- Args:
- - ctrl_id : controller id to which namespace to be attched.
+ - ctrl_id : controller id to which namespace to be attached.
- nsid : new namespace id.
- Returns:
- 0 on success, error code on failure.
def detach_ns(self, ctrl_id, nsid):
""" Wrapper for detaching the namespace.
- Args:
- - ctrl_id : controller id to which namespace to be attched.
+ - ctrl_id : controller id to which namespace to be attached.
- nsid : new namespace id.
- Returns:
- 0 on success, error code on failure.