]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
plugins/ocp: Rename FW activation history command
authorArthur Shau <arthurshau@meta.com>
Mon, 5 Jun 2023 04:31:58 +0000 (21:31 -0700)
committerDaniel Wagner <wagi@monom.org>
Wed, 20 Sep 2023 10:15:31 +0000 (12:15 +0200)
Get rid of the "vs-" prefix in the fw-activate-history command to bring
it in line with the other command names

[dwagner: updated tab completion]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
completions/_nvme
completions/bash-nvme-completion.sh
plugins/ocp/ocp-nvme.h

index 8a06a41b06920f8a3add99af64f004bd0f3c28ca..5d07bc5999e32b2cbeed46fdae0ec650fed820f6 100644 (file)
@@ -217,15 +217,15 @@ _nvme () {
                                _arguments '*:: :->subcmds'
                                _describe -t commands "nvme ocp clear-pcie-correctable-error-counters options" _clear_pcie_correctable_error_counters
                                ;;
-                       (vs-fw-activate-history)
-                               local _vs_fw_activate_history
-                               _vs_fw_activate_history=(
+                       (fw-activate-history)
+                               local _fw_activate_history
+                               _fw_activate_history=(
                                /dev/nvme':supply a device to use (required)'
                                --output-format=':Output format: normal|json'
                                -o':alias for --output-format'
                                )
                                _arguments '*:: :->subcmds'
-                               _describe -t commands "nvme ocp vs-fw-activate-history options" _vs_fw_activate_history
+                               _describe -t commands "nvme ocp fw-activate-history options" _fw_activate_history
                                ;;
                        (device-capability-log)
                                local _device_capability_log
index 3ec8e4c939452026099e746af01f8cd68216dc05..1dfccd87703da14c036b811c0e878a3c6fbd383a 100644 (file)
@@ -1342,7 +1342,7 @@ plugin_ocp_opts () {
                "clear-pcie-correctable-error-counters")
                opts+=" --no-uuid -n"
                        ;;
-               "vs-fw-activate-history")
+               "fw-activate-history")
                opts+=" --output-format= -o"
                        ;;
                "device-capability-log")
index 18522945578cd8b1af0d1aafc1daeba2842153b4..dda4ffe32cfb2e0cdd3a04ec7a6ff0981bfd4d72 100644 (file)
@@ -22,7 +22,7 @@ PLUGIN(NAME("ocp", "OCP cloud SSD extensions", NVME_VERSION),
                ENTRY("clear-fw-activate-history", "Clear firmware update history log", clear_fw_update_history)
                ENTRY("eol-plp-failure-mode", "Define EOL or PLP circuitry failure mode.", eol_plp_failure_mode)
                ENTRY("clear-pcie-correctable-error-counters", "Clear PCIe correctable error counters", clear_pcie_corectable_error_counters)
-               ENTRY("vs-fw-activate-history", "Get firmware activation history log", fw_activation_history_log)
+               ENTRY("fw-activate-history", "Get firmware activation history log", fw_activation_history_log)
                ENTRY("unsupported-reqs-log", "Get Unsupported Requirements Log Page", ocp_unsupported_requirements_log)
                ENTRY("error-recovery-log", "Retrieve Error Recovery Log Page", ocp_error_recovery_log)
                ENTRY("device-capability-log", "Get Device capabilities Requirements Log Page", ocp_device_capabilities_log)