Skip to content

Commit bb16f9c

Browse files
committed
nvme-builtin: sort command list as alphabetical order
This is to find easily the sub-commands name from the help list. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 71fa5d9 commit bb16f9c

1 file changed

Lines changed: 95 additions & 95 deletions

File tree

nvme-builtin.h

Lines changed: 95 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -8,122 +8,122 @@
88
#include "cmd.h"
99

1010
COMMAND_LIST(
11-
ENTRY("list", "List all NVMe devices and namespaces on machine", list)
12-
ENTRY("list-subsys", "List nvme subsystems", list_subsys)
13-
ENTRY("id-ctrl", "Send NVMe Identify Controller", id_ctrl)
14-
ENTRY("id-ns", "Send NVMe Identify Namespace, display structure", id_ns)
15-
ENTRY("id-ns-granularity", "Send NVMe Identify Namespace Granularity List, display structure", id_ns_granularity)
16-
ENTRY("id-ns-lba-format", "Send NVMe Identify Namespace for the specified LBA Format index, display structure", id_ns_lba_format)
17-
ENTRY("list-ns", "Send NVMe Identify List, display structure", list_ns)
18-
ENTRY("list-ctrl", "Send NVMe Identify Controller List, display structure", list_ctrl)
19-
ENTRY("nvm-id-ctrl", "Send NVMe Identify Controller NVM Command Set, display structure", nvm_id_ctrl)
20-
ENTRY("nvm-id-ns", "Send NVMe Identify Namespace NVM Command Set, display structure", nvm_id_ns)
21-
ENTRY("nvm-id-ns-lba-format", "Send NVMe Identify Namespace NVM Command Set for the specified LBA Format index, display structure", nvm_id_ns_lba_format)
22-
ENTRY("primary-ctrl-caps", "Send NVMe Identify Primary Controller Capabilities", primary_ctrl_caps)
23-
ENTRY("list-secondary", "List Secondary Controllers associated with a Primary Controller", list_secondary_ctrl)
11+
ENTRY("admin-passthru", "Submit an arbitrary admin command, return results", admin_passthru)
12+
ENTRY("ana-log", "Retrieve ANA Log, show it", get_ana_log)
13+
ENTRY("attach-ns", "Attaches a namespace to requested controller(s)", attach_ns)
14+
ENTRY("ave-discovery-log", "Retrieve AVE Discovery Log, show it", get_ave_discovery_log)
15+
ENTRY("boot-part-log", "Retrieve Boot Partition Log, show it", get_boot_part_log)
16+
ENTRY("capacity-mgmt", "Submit Capacity Management Command, return results", capacity_mgmt)
17+
ENTRY("changed-alloc-ns-list-log", "Retrieve Changed Allocated Namespace List, show it", get_changed_alloc_ns_list_log)
18+
ENTRY("changed-ns-list-log", "Retrieve Changed Attached Namespace List, show it", get_changed_attach_ns_list_log)
19+
ENTRY("check-dhchap-key", "Validate NVMeoF DH-HMAC-CHAP host key", check_dhchap_key)
20+
ENTRY("check-tls-key", "Validate NVMeoF TLS PSK", check_tls_key)
2421
ENTRY("cmdset-ind-id-ns", "I/O Command Set Independent Identify Namespace", cmd_set_independent_id_ns)
25-
ENTRY("ns-descs", "Send NVMe Namespace Descriptor List, display structure", ns_descs)
26-
ENTRY("id-nvmset", "Send NVMe Identify NVM Set List, display structure", id_nvmset)
27-
ENTRY("id-uuid", "Send NVMe Identify UUID List, display structure", id_uuid)
28-
ENTRY("id-iocs", "Send NVMe Identify I/O Command Set, display structure", id_iocs)
29-
ENTRY("id-domain", "Send NVMe Identify Domain List, display structure", id_domain)
30-
ENTRY("list-endgrp", "Send NVMe Identify Endurance Group List, display structure", id_endurance_grp_list)
22+
ENTRY("compare", "Submit a Compare command, return results", compare)
23+
ENTRY("config", "Configuration of NVMeoF subsystems", config_cmd)
24+
ENTRY("connect", "Connect to NVMeoF subsystem", connect_cmd)
25+
ENTRY("connect-all", "Discover and Connect to NVMeoF subsystems", connect_all_cmd)
26+
ENTRY("copy", "Submit a Simple Copy command, return results", copy_cmd)
3127
ENTRY("create-ns", "Creates a namespace with the provided parameters", create_ns)
3228
ENTRY("delete-ns", "Deletes a namespace from the controller", delete_ns)
33-
ENTRY("attach-ns", "Attaches a namespace to requested controller(s)", attach_ns)
3429
ENTRY("detach-ns", "Detaches a namespace from requested controller(s)", detach_ns)
35-
ENTRY("get-ns-id", "Retrieve the namespace ID of opened block device", get_ns_id)
36-
ENTRY("get-log", "Generic NVMe get log, returns log in raw format", get_log)
37-
ENTRY("telemetry-log", "Retrieve FW Telemetry log write to file", get_telemetry_log)
38-
ENTRY("fw-log", "Retrieve FW Log, show it", get_fw_log)
39-
ENTRY("changed-ns-list-log", "Retrieve Changed Attached Namespace List, show it", get_changed_attach_ns_list_log)
40-
ENTRY("smart-log", "Retrieve SMART Log, show it", get_smart_log)
41-
ENTRY("ana-log", "Retrieve ANA Log, show it", get_ana_log)
42-
ENTRY("error-log", "Retrieve Error Log, show it", get_error_log)
30+
ENTRY("device-self-test", "Perform the necessary tests to observe the performance", device_self_test)
31+
ENTRY("dim", "Send Discovery Information Management command to a Discovery Controller", dim_cmd) \
32+
ENTRY("dir-receive", "Submit a Directive Receive command, return results", dir_receive)
33+
ENTRY("dir-send", "Submit a Directive Send command, return results", dir_send)
34+
ENTRY("disconnect", "Disconnect from NVMeoF subsystem", disconnect_cmd)
35+
ENTRY("disconnect-all", "Disconnect from all connected NVMeoF subsystems", disconnect_all_cmd)
36+
ENTRY("discover", "Discover NVMeoF subsystems", discover_cmd)
37+
ENTRY("dispersed-ns-participating-nss-log", "Retrieve Dispersed Namespace Participating NVM Subsystems Log, show it", get_dispersed_ns_participating_nss_log)
38+
ENTRY("dsm", "Submit a Data Set Management command, return results", dsm)
4339
ENTRY("effects-log", "Retrieve Command Effects Log, show it", get_effects_log)
44-
ENTRY("endurance-log", "Retrieve Endurance Group Log, show it", get_endurance_log)
45-
ENTRY("predictable-lat-log", "Retrieve Predictable Latency per Nvmset Log, show it", get_pred_lat_per_nvmset_log)
46-
ENTRY("pred-lat-event-agg-log", "Retrieve Predictable Latency Event Aggregate Log, show it", get_pred_lat_event_agg_log)
47-
ENTRY("persistent-event-log", "Retrieve Persistent Event Log, show it", get_persistent_event_log)
4840
ENTRY("endurance-event-agg-log", "Retrieve Endurance Group Event Aggregate Log, show it", get_endurance_event_agg_log)
49-
ENTRY("lba-status-log", "Retrieve LBA Status Information Log, show it", get_lba_status_log)
50-
ENTRY("resv-notif-log", "Retrieve Reservation Notification Log, show it", get_resv_notif_log)
51-
ENTRY("boot-part-log", "Retrieve Boot Partition Log, show it", get_boot_part_log)
52-
ENTRY("phy-rx-eom-log", "Retrieve Physical Interface Receiver Eye Opening Measurement, show it", get_phy_rx_eom_log)
53-
ENTRY("get-feature", "Get feature and show the resulting value", get_feature)
54-
ENTRY("device-self-test", "Perform the necessary tests to observe the performance", device_self_test)
55-
ENTRY("self-test-log", "Retrieve the SELF-TEST Log, show it", self_test_log)
56-
ENTRY("supported-log-pages", "Retrieve the Supported Log pages details, show it", get_supported_log_pages)
41+
ENTRY("endurance-log", "Retrieve Endurance Group Log, show it", get_endurance_log)
42+
ENTRY("error-log", "Retrieve Error Log, show it", get_error_log)
5743
ENTRY("fid-support-effects-log", "Retrieve FID Support and Effects log and show it", get_fid_support_effects_log)
58-
ENTRY("mi-cmd-support-effects-log", "Retrieve MI Command Support and Effects log and show it", get_mi_cmd_support_effects_log)
59-
ENTRY("media-unit-stat-log", "Retrieve the configuration and wear of media units, show it", get_media_unit_stat_log)
60-
ENTRY("supported-cap-config-log", "Retrieve the list of Supported Capacity Configuration Descriptors", get_supp_cap_config_log)
61-
ENTRY("mgmt-addr-list-log", "Retrieve Management Address List Log, show it", get_mgmt_addr_list_log)
62-
ENTRY("rotational-media-info-log", "Retrieve Rotational Media Information Log, show it", get_rotational_media_info_log)
63-
ENTRY("changed-alloc-ns-list-log", "Retrieve Changed Allocated Namespace List, show it", get_changed_alloc_ns_list_log)
64-
ENTRY("dispersed-ns-participating-nss-log", "Retrieve Dispersed Namespace Participating NVM Subsystems Log, show it", get_dispersed_ns_participating_nss_log)
65-
ENTRY("reachability-groups-log", "Retrieve Reachability Groups Log, show it", get_reachability_groups_log)
66-
ENTRY("reachability-associations-log", "Retrieve Reachability Associations Log, show it", get_reachability_associations_log)
67-
ENTRY("host-discovery-log", "Retrieve Host Discovery Log, show it", get_host_discovery_log)
68-
ENTRY("ave-discovery-log", "Retrieve AVE Discovery Log, show it", get_ave_discovery_log)
69-
ENTRY("pull-model-ddc-req-log", "Retrieve Pull Model DDC Request Log, show it", get_pull_model_ddc_req_log)
70-
ENTRY("set-feature", "Set a feature and show the resulting value", set_feature)
71-
ENTRY("set-property", "Set a property and show the resulting value", set_property)
72-
ENTRY("get-property", "Get a property and show the resulting value", get_property)
44+
ENTRY("flush", "Submit a Flush command, return results", flush_cmd)
7345
ENTRY("format", "Format namespace with new block format", format_cmd)
7446
ENTRY("fw-commit", "Verify and commit firmware to a specific slot (fw-activate in old version < 1.2)", fw_commit, "fw-activate")
7547
ENTRY("fw-download", "Download new firmware", fw_download)
76-
ENTRY("admin-passthru", "Submit an arbitrary admin command, return results", admin_passthru)
77-
ENTRY("io-passthru", "Submit an arbitrary IO command, return results", io_passthru)
78-
ENTRY("security-send", "Submit a Security Send command, return results", sec_send)
79-
ENTRY("security-recv", "Submit a Security Receive command, return results", sec_recv)
48+
ENTRY("fw-log", "Retrieve FW Log, show it", get_fw_log)
49+
ENTRY("gen-dhchap-key", "Generate NVMeoF DH-HMAC-CHAP host key", gen_dhchap_key)
50+
ENTRY("gen-hostnqn", "Generate NVMeoF host NQN", gen_hostnqn_cmd)
51+
ENTRY("gen-tls-key", "Generate NVMeoF TLS PSK", gen_tls_key)
52+
ENTRY("get-feature", "Get feature and show the resulting value", get_feature)
8053
ENTRY("get-lba-status", "Submit a Get LBA Status command, return results", get_lba_status)
81-
ENTRY("capacity-mgmt", "Submit Capacity Management Command, return results", capacity_mgmt)
54+
ENTRY("get-log", "Generic NVMe get log, returns log in raw format", get_log)
55+
ENTRY("get-ns-id", "Retrieve the namespace ID of opened block device", get_ns_id)
56+
ENTRY("get-property", "Get a property and show the resulting value", get_property)
57+
ENTRY("get-reg", "Get a register and show the resulting value", get_register)
58+
ENTRY("host-discovery-log", "Retrieve Host Discovery Log, show it", get_host_discovery_log)
59+
ENTRY("id-ctrl", "Send NVMe Identify Controller", id_ctrl)
60+
ENTRY("id-domain", "Send NVMe Identify Domain List, display structure", id_domain)
61+
ENTRY("id-iocs", "Send NVMe Identify I/O Command Set, display structure", id_iocs)
62+
ENTRY("id-ns", "Send NVMe Identify Namespace, display structure", id_ns)
63+
ENTRY("id-ns-granularity", "Send NVMe Identify Namespace Granularity List, display structure", id_ns_granularity)
64+
ENTRY("id-ns-lba-format", "Send NVMe Identify Namespace for the specified LBA Format index, display structure", id_ns_lba_format)
65+
ENTRY("id-nvmset", "Send NVMe Identify NVM Set List, display structure", id_nvmset)
66+
ENTRY("id-uuid", "Send NVMe Identify UUID List, display structure", id_uuid)
67+
ENTRY("io-mgmt-recv", "I/O Management Receive", io_mgmt_recv)
68+
ENTRY("io-mgmt-send", "I/O Management Send", io_mgmt_send)
69+
ENTRY("io-passthru", "Submit an arbitrary IO command, return results", io_passthru)
70+
ENTRY("lba-status-log", "Retrieve LBA Status Information Log, show it", get_lba_status_log)
71+
ENTRY("list", "List all NVMe devices and namespaces on machine", list)
72+
ENTRY("list-ctrl", "Send NVMe Identify Controller List, display structure", list_ctrl)
73+
ENTRY("list-endgrp", "Send NVMe Identify Endurance Group List, display structure", id_endurance_grp_list)
74+
ENTRY("list-ns", "Send NVMe Identify List, display structure", list_ns)
75+
ENTRY("list-secondary", "List Secondary Controllers associated with a Primary Controller", list_secondary_ctrl)
76+
ENTRY("list-subsys", "List nvme subsystems", list_subsys)
77+
ENTRY("lockdown", "Submit a Lockdown command,return result", lockdown_cmd)
78+
ENTRY("media-unit-stat-log", "Retrieve the configuration and wear of media units, show it", get_media_unit_stat_log)
79+
ENTRY("mgmt-addr-list-log", "Retrieve Management Address List Log, show it", get_mgmt_addr_list_log)
80+
ENTRY("mi-cmd-support-effects-log", "Retrieve MI Command Support and Effects log and show it", get_mi_cmd_support_effects_log)
81+
ENTRY("ns-descs", "Send NVMe Namespace Descriptor List, display structure", ns_descs)
82+
ENTRY("ns-rescan", "Rescans the NVME namespaces", ns_rescan)
83+
ENTRY("nvme-mi-recv", "Submit a NVMe-MI Receive command, return results", nmi_recv)
84+
ENTRY("nvme-mi-send", "Submit a NVMe-MI Send command, return results", nmi_send)
85+
ENTRY("nvm-id-ctrl", "Send NVMe Identify Controller NVM Command Set, display structure", nvm_id_ctrl)
86+
ENTRY("nvm-id-ns", "Send NVMe Identify Namespace NVM Command Set, display structure", nvm_id_ns)
87+
ENTRY("nvm-id-ns-lba-format", "Send NVMe Identify Namespace NVM Command Set for the specified LBA Format index, display structure", nvm_id_ns_lba_format)
88+
ENTRY("persistent-event-log", "Retrieve Persistent Event Log, show it", get_persistent_event_log)
89+
ENTRY("phy-rx-eom-log", "Retrieve Physical Interface Receiver Eye Opening Measurement, show it", get_phy_rx_eom_log)
90+
ENTRY("predictable-lat-log", "Retrieve Predictable Latency per Nvmset Log, show it", get_pred_lat_per_nvmset_log)
91+
ENTRY("pred-lat-event-agg-log", "Retrieve Predictable Latency Event Aggregate Log, show it", get_pred_lat_event_agg_log)
92+
ENTRY("primary-ctrl-caps", "Send NVMe Identify Primary Controller Capabilities", primary_ctrl_caps)
93+
ENTRY("pull-model-ddc-req-log", "Retrieve Pull Model DDC Request Log, show it", get_pull_model_ddc_req_log)
94+
ENTRY("reachability-associations-log", "Retrieve Reachability Associations Log, show it", get_reachability_associations_log)
95+
ENTRY("reachability-groups-log", "Retrieve Reachability Groups Log, show it", get_reachability_groups_log)
96+
ENTRY("read", "Submit a read command, return results", read_cmd)
97+
ENTRY("reset", "Resets the controller", reset)
8298
ENTRY("resv-acquire", "Submit a Reservation Acquire, return results", resv_acquire)
99+
ENTRY("resv-notif-log", "Retrieve Reservation Notification Log, show it", get_resv_notif_log)
83100
ENTRY("resv-register", "Submit a Reservation Register, return results", resv_register)
84101
ENTRY("resv-release", "Submit a Reservation Release, return results", resv_release)
85102
ENTRY("resv-report", "Submit a Reservation Report, return results", resv_report)
86-
ENTRY("dsm", "Submit a Data Set Management command, return results", dsm)
87-
ENTRY("copy", "Submit a Simple Copy command, return results", copy_cmd)
88-
ENTRY("flush", "Submit a Flush command, return results", flush_cmd)
89-
ENTRY("compare", "Submit a Compare command, return results", compare)
90-
ENTRY("read", "Submit a read command, return results", read_cmd)
91-
ENTRY("write", "Submit a write command, return results", write_cmd)
92-
ENTRY("write-zeroes", "Submit a write zeroes command, return results", write_zeroes)
93-
ENTRY("write-uncor", "Submit a write uncorrectable command, return results", write_uncor)
94-
ENTRY("verify", "Submit a verify command, return results", verify_cmd)
103+
ENTRY("rotational-media-info-log", "Retrieve Rotational Media Information Log, show it", get_rotational_media_info_log)
104+
ENTRY("rpmb", "Replay Protection Memory Block commands", rpmb_cmd)
95105
ENTRY("sanitize", "Submit a sanitize command", sanitize_cmd)
96106
ENTRY("sanitize-log", "Retrieve sanitize log, show it", sanitize_log)
97-
ENTRY("reset", "Resets the controller", reset)
98-
ENTRY("subsystem-reset", "Resets the subsystem", subsystem_reset)
99-
ENTRY("ns-rescan", "Rescans the NVME namespaces", ns_rescan)
100-
ENTRY("show-regs", "Shows the controller registers or properties. Requires character device", show_registers)
107+
ENTRY("security-recv", "Submit a Security Receive command, return results", sec_recv)
108+
ENTRY("security-send", "Submit a Security Send command, return results", sec_send)
109+
ENTRY("self-test-log", "Retrieve the SELF-TEST Log, show it", self_test_log)
110+
ENTRY("set-feature", "Set a feature and show the resulting value", set_feature)
111+
ENTRY("set-property", "Set a property and show the resulting value", set_property)
101112
ENTRY("set-reg", "Set a register and show the resulting value", set_register)
102-
ENTRY("get-reg", "Get a register and show the resulting value", get_register)
103-
ENTRY("discover", "Discover NVMeoF subsystems", discover_cmd)
104-
ENTRY("connect-all", "Discover and Connect to NVMeoF subsystems", connect_all_cmd)
105-
ENTRY("connect", "Connect to NVMeoF subsystem", connect_cmd)
106-
ENTRY("disconnect", "Disconnect from NVMeoF subsystem", disconnect_cmd)
107-
ENTRY("disconnect-all", "Disconnect from all connected NVMeoF subsystems", disconnect_all_cmd)
108-
ENTRY("config", "Configuration of NVMeoF subsystems", config_cmd)
109-
ENTRY("gen-hostnqn", "Generate NVMeoF host NQN", gen_hostnqn_cmd)
110113
ENTRY("show-hostnqn", "Show NVMeoF host NQN", show_hostnqn_cmd)
111-
ENTRY("gen-dhchap-key", "Generate NVMeoF DH-HMAC-CHAP host key", gen_dhchap_key)
112-
ENTRY("check-dhchap-key", "Validate NVMeoF DH-HMAC-CHAP host key", check_dhchap_key)
113-
ENTRY("gen-tls-key", "Generate NVMeoF TLS PSK", gen_tls_key)
114-
ENTRY("check-tls-key", "Validate NVMeoF TLS PSK", check_tls_key)
114+
ENTRY("show-regs", "Shows the controller registers or properties. Requires character device", show_registers)
115+
ENTRY("show-topology", "Show the topology", show_topology_cmd) \
116+
ENTRY("smart-log", "Retrieve SMART Log, show it", get_smart_log)
117+
ENTRY("subsystem-reset", "Resets the subsystem", subsystem_reset)
118+
ENTRY("supported-cap-config-log", "Retrieve the list of Supported Capacity Configuration Descriptors", get_supp_cap_config_log)
119+
ENTRY("supported-log-pages", "Retrieve the Supported Log pages details, show it", get_supported_log_pages)
120+
ENTRY("telemetry-log", "Retrieve FW Telemetry log write to file", get_telemetry_log)
115121
ENTRY("tls-key", "Manipulate NVMeoF TLS PSK", tls_key)
116-
ENTRY("dir-receive", "Submit a Directive Receive command, return results", dir_receive)
117-
ENTRY("dir-send", "Submit a Directive Send command, return results", dir_send)
122+
ENTRY("verify", "Submit a verify command, return results", verify_cmd)
118123
ENTRY("virt-mgmt", "Manage Flexible Resources between Primary and Secondary Controller", virtual_mgmt)
119-
ENTRY("rpmb", "Replay Protection Memory Block commands", rpmb_cmd)
120-
ENTRY("lockdown", "Submit a Lockdown command,return result", lockdown_cmd)
121-
ENTRY("dim", "Send Discovery Information Management command to a Discovery Controller", dim_cmd) \
122-
ENTRY("show-topology", "Show the topology", show_topology_cmd) \
123-
ENTRY("io-mgmt-recv", "I/O Management Receive", io_mgmt_recv)
124-
ENTRY("io-mgmt-send", "I/O Management Send", io_mgmt_send)
125-
ENTRY("nvme-mi-recv", "Submit a NVMe-MI Receive command, return results", nmi_recv)
126-
ENTRY("nvme-mi-send", "Submit a NVMe-MI Send command, return results", nmi_send)
124+
ENTRY("write", "Submit a write command, return results", write_cmd)
125+
ENTRY("write-uncor", "Submit a write uncorrectable command, return results", write_uncor)
126+
ENTRY("write-zeroes", "Submit a write zeroes command, return results", write_zeroes)
127127
);
128128

129129
#endif

0 commit comments

Comments
 (0)