@@ -113,6 +113,7 @@ _nvme () {
113
113
'ocp:OCP cloud SSD extensions'
114
114
'solidigm:Solidigm plug-in extensions'
115
115
'micron:Micron plug-in extensions'
116
+ 'dapustor:DapuStor plug-in extensions'
116
117
'help:print brief descriptions of all nvme commands'
117
118
'json:dump output in json format'
118
119
)
@@ -548,6 +549,26 @@ _nvme () {
548
549
;;
549
550
esac
550
551
;;
552
+ (dapustor)
553
+ case ${words[2]} in
554
+ (smart-log-add)
555
+ local _smart_log_add
556
+ _smart_log_add=(
557
+ --namespace-id':(optional) desired namespace'
558
+ -n':alias for --namespace-id'
559
+ --output-format':Output format: normal|json|binary'
560
+ -o':alias for --output-format'
561
+ --raw-binary':dump log in binary format'
562
+ -b':alias of --raw-binary'
563
+ )
564
+ _arguments '*:: :->subcmds'
565
+ _describe -t commands "nvme dapustor smart-log-add options" _smart_log_add
566
+ ;;
567
+ (*)
568
+ _files
569
+ ;;
570
+ esac
571
+ ;;
551
572
(sanitize)
552
573
case ${words[CURRENT-1]} in
553
574
(--sanact=|-a)
@@ -2618,6 +2639,16 @@ _nvme () {
2618
2639
_arguments '*:: :->subcmds'
2619
2640
_describe -t commands "nvme micron options" _micron
2620
2641
;;
2642
+ (dapustor)
2643
+ local _dapustor
2644
+ _dapustor=(
2645
+ smart-log-add':Retrieve DapuStor SMART Log'
2646
+ version':Shows the program version'
2647
+ help':Display this help'
2648
+ )
2649
+ _arguments '*:: :->subcmds'
2650
+ _describe -t commands "nvme dapustor options" _dapustor
2651
+ ;;
2621
2652
(help)
2622
2653
local _h
2623
2654
_h=( id-ctrl id-ns list-ns id-iocs create-ns delete-ns attach-ns detach-ns
@@ -2635,7 +2666,7 @@ _nvme () {
2635
2666
get-property write-zeroes write-uncor verify sanitize sanitize-log reset
2636
2667
subsystem-reset ns-rescan get-lba-status dsm discover connect-all connect
2637
2668
dim disconnect disconnect-all gen-hostnqn show-hostnqn tls-key dir-receive
2638
- dir-send virt-mgmt rpmb version ocp solidigm
2669
+ dir-send virt-mgmt rpmb version ocp solidigm dapustor
2639
2670
)
2640
2671
_arguments '*:: :->subcmds'
2641
2672
_describe -t commands "help: infos on a specific nvme command, or provide no option to see a synopsis of all nvme commands" _h
0 commit comments