Skip to content

Commit 16e5d26

Browse files
lgdacunhigaw
authored andcommitted
completions: Added ocp get/set_error_injection options.
Added option to select all namespaces. Signed-off-by: Leonardo da Cunha <[email protected]>
1 parent 6b412b7 commit 16e5d26

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

completions/_nvme

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ _nvme () {
345345
-s':alias for --sel'
346346
--no-uuid':Skip UUID index search'
347347
-n':alias for --no-uuid'
348+
--all-ns':Send the command to all namespaces'
349+
-a':alias for --all-ns'
348350
)
349351
_arguments '*:: :->subcmds'
350352
_describe -t commands "nvme ocp get-error-injection options" _get_error_injection
@@ -368,6 +370,8 @@ _nvme () {
368370
--output-format=':Output format: normal|json|binary'
369371
-o ':alias for --output-format'
370372
--timeout=':value for timeout'
373+
--all-ns':Send the command to all namespaces'
374+
-a':alias for --all-ns'
371375
)
372376
_arguments '*:: :->subcmds'
373377
_describe -t commands "nvme ocp set-error-injection options" _set_error_injection

completions/bash-nvme-completion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,11 +1638,11 @@ plugin_ocp_opts () {
16381638
opts+=" --output-file= -o"
16391639
;;
16401640
"get-error-injection")
1641-
opts+=" --sel= -s --no-uuid -n"
1641+
opts+=" --sel= -s --no-uuid -n --all-ns -a"
16421642
;;
16431643
"set-error-injection")
16441644
opts+=" --data= -d --number= -n --no-uuid -N --type= -t \
1645-
--nrtdp= -r --verbose -v --output-format -o --timeout="
1645+
--nrtdp= -r --verbose -v --output-format -o --timeout= --all-ns -a"
16461646
;;
16471647
"hardware-component-log")
16481648
opts+=" --comp-id= -i --list -l --verbose -v \

0 commit comments

Comments
 (0)