Commit eb659fe 1 parent 5a52f60 commit eb659fe Copy full SHA for eb659fe
File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,18 @@ _nvme () {
317
317
_arguments '*:: :->subcmds'
318
318
_describe -t commands "nvme ocp tcg-configuration-log options" _ocp_tcg_configuration_log
319
319
;;
320
+ (get-error-injection)
321
+ local _get_error_injection
322
+ _get_error_injection=(
323
+ /dev/nvme':supply a device to use (required)'
324
+ --sel=':0-3: current/default/saved/supported/changed:'
325
+ -s':alias for --sel'
326
+ --no-uuid':Skip UUID index search'
327
+ -n':alias for --no-uuid'
328
+ )
329
+ _arguments '*:: :->subcmds'
330
+ _describe -t commands "nvme ocp get-error-injection options" _get_error_injection
331
+ ;;
320
332
(*)
321
333
_files
322
334
;;
@@ -2547,6 +2559,7 @@ _nvme () {
2547
2559
telemetry-string-log':Retrieve Telemetry string Log Page'
2548
2560
set-telemetry-profile':Set Telemetry Profile'
2549
2561
tcg-configuration-log':tcg configuration log'
2562
+ get-error-injection':get error injection'
2550
2563
)
2551
2564
_arguments '*:: :->subcmds'
2552
2565
_describe -t commands "nvme ocp options" _ocp
Original file line number Diff line number Diff line change @@ -1487,6 +1487,9 @@ plugin_ocp_opts () {
1487
1487
" tcg-configuration-log" )
1488
1488
opts+=" --output-file= -o"
1489
1489
;;
1490
+ " get-error-injection" )
1491
+ opts+=" --sel= -s --no-uuid -n"
1492
+ ;;
1490
1493
" help" )
1491
1494
opts+=$NO_OPTS
1492
1495
;;
@@ -1564,7 +1567,8 @@ _nvme_subcmds () {
1564
1567
vs-fw-activate-history device-capability-log \
1565
1568
set-dssd-power-state-feature get-dssd-power-state-feature \
1566
1569
telemetry-string-log set-telemetry-profile \
1567
- set-dssd-async-event-config get-dssd-async-event-config"
1570
+ set-dssd-async-event-config get-dssd-async-event-config \
1571
+ get-error-injection"
1568
1572
)
1569
1573
1570
1574
# Associative array mapping plugins to corresponding option completions
You can’t perform that action at this time.
0 commit comments