@@ -118,6 +118,7 @@ _nvme () {
118118 'version:show the program version'
119119 'ocp:OCP cloud SSD extensions'
120120 'solidigm:Solidigm plug-in extensions'
121+ 'fdp:FDP plug-in extensions'
121122 'micron:Micron plug-in extensions'
122123 'dapustor:DapuStor plug-in extensions'
123124 'help:print brief descriptions of all nvme commands'
@@ -603,6 +604,28 @@ _nvme () {
603604 ;;
604605 esac
605606 ;;
607+ (fdp)
608+ case ${words[2]} in
609+ (feature)
610+ local _feature
611+ _feature=(
612+ --endgrp-id=':Endurance group ID'
613+ -e':alias for --endgrp-id'
614+ --enable-conf-idx=':FDP configuration index to enable'
615+ -c':alias for --enable-conf-idx'
616+ --disable=':Disable current FDP configuration'
617+ -d':alias for --disable'
618+ --verbose=':Increase output verbosity'
619+ -v':alias for --verbose'
620+ )
621+ _arguments '*:: :->subcmds'
622+ _describe -t commands "nvme fdp feature options" _feature
623+ ;;
624+ (*)
625+ _files
626+ ;;
627+ esac
628+ ;;
606629 (dapustor)
607630 case ${words[2]} in
608631 (smart-log-add)
@@ -2643,7 +2666,10 @@ _nvme () {
26432666 -v':alias for --verbose'
26442667 --output-format=':Output format: normal|json|binary'
26452668 -o ':alias for --output-format'
2669+ )
2670+ _arguments '*:: :->subcmds'
26462671 _describe -t commands "nvme rotational-media-info-log" _rmi_log
2672+ ;;
26472673 (changed-alloc-ns-list-log)
26482674 local _changed_alloc_ns_list_log
26492675 _changed_alloc_ns_list_log=(
@@ -2768,6 +2794,16 @@ _nvme () {
27682794 _arguments '*:: :->subcmds'
27692795 _describe -t commands "nvme solidigm options" _solidigm
27702796 ;;
2797+ (fdp)
2798+ local _fdp
2799+ _fdp=(
2800+ feature':Show, enable or disable FDP configuration'
2801+ version':Shows the plug-in version'
2802+ help':Display this help'
2803+ )
2804+ _arguments '*:: :->subcmds'
2805+ _describe -t commands "nvme fdp options" _fdp
2806+ ;;
27712807 (micron)
27722808 local micron
27732809 _micron=(
@@ -2824,7 +2860,7 @@ _nvme () {
28242860 subsystem-reset ns-rescan get-lba-status dsm discover connect-all connect
28252861 dim disconnect disconnect-all gen-hostnqn show-hostnqn tls-key dir-receive
28262862 dir-send virt-mgmt rpmb version ocp solidigm dapustor mgmt-addr-list-log
2827- rotational-media-info-log changed-alloc-ns-list-log
2863+ rotational-media-info-log changed-alloc-ns-list-log fdp
28282864 )
28292865 _arguments '*:: :->subcmds'
28302866 _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