]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
completions: Add Completion for Identify(CNS 08h)
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Wed, 25 Aug 2021 09:14:20 +0000 (18:14 +0900)
committerDaniel Wagner <dwagner@suse.de>
Mon, 15 Nov 2021 11:06:29 +0000 (12:06 +0100)
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
completions/_nvme
completions/bash-nvme-completion.sh

index 9204536f02557ab0b472d1ddca211183c9902b87..82a28b614c9835a671c98fda87cc42a4b7cd6ed7 100644 (file)
@@ -10,6 +10,7 @@ _nvme () {
        'id-ctrl:display information about the controller'
        'id-ns:display information about the namespace'
        'list-ns:identify all namespace(s) attached'
+       'cmdset-ind-id-ns':display I/O Command Set Independent information about the namespace'
        'id-iocs:display information about I/O command sets'
        'id-domain:display information about domain list'
        'create-ns:create a new namespace before attachment'
@@ -105,6 +106,20 @@ _nvme () {
                        _arguments '*:: :->subcmds'
                        _describe -t commands "nvme list-ns options" _listns
                        ;;
+               (cmdset-ind-id-ns)
+                       local _cmdset_ind_idns
+                       _cmdset_ind_idns=(
+                       /dev/nvme':supply a device to use (required)'
+                       --namespace-id=':show infos for namespace <nsid>'
+                       -n':alias of --namespace-id'
+                       --raw-binary':dump infos in binary format'
+                       -b':alias of --raw-binary'
+                       --human-readable':show infos in readable format'
+                       -H':alias of --human-readable'
+                       )
+                       _arguments '*:: :->subcmds'
+                       _describe -t commands "nvme cmdset-ind-id-ns options" _cmdset_ind_idns
+                       ;;
                (id-iocs)
                        local _idiocs
                        _idiocs=(
index 2b31233ec318ffd3504d69e5cbd503071eb85d5d..4d3097aa579cfdd015fb3ca2338fb43bf869060a 100644 (file)
@@ -154,6 +154,10 @@ nvme_list_opts () {
                opts+=" --namespace-id= -n --cntid= -c \
                        --output-format= -o"
                        ;;
+               "cmdset-ind-id-ns")
+               opts+=" --namespace-id= -n --raw-binary -b \
+                       --human-readable -H --output-format= -o"
+                       ;;
                "nvm-id-ctrl")
                opts+=" --output-format= -o"
                        ;;