]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
completions: Change fw-activate command name to fw-commit
authorTokunori Ikegami <ikegami.t@gmail.com>
Sat, 13 Apr 2024 16:39:26 +0000 (01:39 +0900)
committerDaniel Wagner <wagi@monom.org>
Thu, 27 Jun 2024 11:04:49 +0000 (13:04 +0200)
The fw-activate command is old version prior to 1.2.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
completions/_nvme

index 9a18ad095696f2e729761ee59b81bbbd9896e53d..67fb4882ed0ab84ecabd5512a8a0e654f4a4773d 100644 (file)
@@ -56,7 +56,7 @@ _nvme () {
        'set-property:writes and shows the defined NVMe controller property for NVMe over Fabric'
        'get-property:Reads and shows the defined NVMe controller property for NVMe over Fabric'
        'format:apply new block format to namespace'
-       'fw-activate:activate a firmware on the device'
+       'fw-commit:verify and commit firmware to a specific slot (fw-activate in old version < 1.2)'
        'fw-download:download a firmware to the device'
        'admin-passthru:submit a passthrough admin command IOCTL'
        'io-passthru:submit a passthrough io command IOCTL'
@@ -1239,9 +1239,9 @@ _nvme () {
                        _arguments '*:: :->subcmds'
                        _describe -t commands "nvme format options" _format
                        ;;
-               (fw-activate)
-                       local _fwact
-                       _fwact=(
+               (fw-commit)
+                       local _fw_commit
+                       _fw_commit=(
                        /dev/nvme':supply a device to use (required)'
                        --action=':activation action (required)? 0 - replace fw without activating, 1 - replace with activation, 2 - replace with activation at next reset'
                        -a':alias of --action'
@@ -1249,7 +1249,7 @@ _nvme () {
                        -s':alias of --slot'
                        )
                        _arguments '*:: :->subcmds'
-                       _describe -t commands "nvme fw-activate options" _fwact
+                       _describe -t commands "nvme fw-commit options" _fw_commit
                        ;;
                (fw-download)
                        local _fwd