1
0
Fork 0

Adding upstream version 2.12.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-20 08:10:40 +01:00
parent 65508f0a28
commit c0fbec1eb4
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
571 changed files with 10718 additions and 2738 deletions

View file

@ -89,6 +89,7 @@ _nvme () {
'lockdown:submit a lockdown command'
'media-unit-stat-log:retrieve media unit status log pages details'
'supported-cap-config-log:retrieve the list of Supported Capacity Configuration Descriptors'
'rotational-media-info-log:retrieve rotational media information log'
'discover:send Get Log Page request to Discovery Controller'
'connect-all:discover NVMeoF subsystems and connect to them'
'connect:connect to NVMeoF subsystem'
@ -109,9 +110,18 @@ _nvme () {
'set-reg:write and show the defined NVMe controller register'
'io-mgmt-recv:send an I/O management receive command'
'io-mgmt-send:send an I/O management send command'
'mgmt-addr-list-log:retrieve management address list log'
'changed-ns-list-log:retrieve changed allocated namespaces log'
'dispersed-ns-participating-nss-log:retrieve dispersed namespace participating NVM subsystems log'
'reachability-groups-log:retrieve reachability groups log'
'reachability-associations-log:retrieve reachability associations log'
'host-discovery-log:retrieve host discovery log'
'ave-discovery-log:retrieve ave discovery log'
'pull-model-ddr-req-log:retrieve pull model ddr req log'
'version:show the program version'
'ocp:OCP cloud SSD extensions'
'solidigm:Solidigm plug-in extensions'
'fdp:FDP plug-in extensions'
'micron:Micron plug-in extensions'
'dapustor:DapuStor plug-in extensions'
'help:print brief descriptions of all nvme commands'
@ -181,7 +191,7 @@ _nvme () {
local _internal_log
_internal_log=(
/dev/nvme':supply a device to use (required)'
--telemetry-type=':Telemetry Type; host or controller generated'
--telemetry-type=':Telemetry Type; host, host0, host1 or controller generated'
-t':alias for --telemetry-type'
--data-area=':Telemetry Data Area; 1 or 2'
-a':alias for --data-area'
@ -366,7 +376,7 @@ _nvme () {
--comp-id=':component identifier'
-i':alias for --comp-id'
--list':list component descriptions'
-v':alias for --list'
-l':alias for --list'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
@ -597,6 +607,28 @@ _nvme () {
;;
esac
;;
(fdp)
case ${words[2]} in
(feature)
local _feature
_feature=(
--endgrp-id=':Endurance group ID'
-e':alias for --endgrp-id'
--enable-conf-idx=':FDP configuration index to enable'
-c':alias for --enable-conf-idx'
--disable=':Disable current FDP configuration'
-d':alias for --disable'
--verbose=':Increase output verbosity'
-v':alias for --verbose'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme fdp feature options" _feature
;;
(*)
_files
;;
esac
;;
(dapustor)
case ${words[2]} in
(smart-log-add)
@ -1455,6 +1487,8 @@ _nvme () {
-C':alias of --storage-tag-check'
--dir-spec=':directive specific'
-D':alias of --dir-spec'
--namespace-zeroes':If set, then the controller clear all logical blocks to zero in the entire namespace'
-Z':alias of --namespace-zeroes'
--timeout=':value for timeout'
-t':alias of --timeout'
)
@ -2585,7 +2619,7 @@ _nvme () {
-t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme set-reg options" _io_mgmt_recv
_describe -t commands "nvme io-mgmt-recv-reg options" _io_mgmt_recv
;;
(io-mgmt-send)
local _io_mgmt_send
@ -2609,7 +2643,153 @@ _nvme () {
-t':alias of --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme set-reg options" _io_mgmt_send
_describe -t commands "nvme io-mgmt-send options" _io_mgmt_send
;;
(mgmt-addr-list-log)
local _mal_log
_mal_log=(
/dev/nvme':supply a device to use (required)'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme mgmt-addr-list-log" _mal_log
;;
(rotational-media-info-log)
local _rmi_log
_rmi_log=(
/dev/nvme':supply a device to use (required)'
--endg-id=':Endurance Group Identifier'
-e':alias of --endg-id'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme rotational-media-info-log" _rmi_log
;;
(changed-alloc-ns-list-log)
local _changed_alloc_ns_list_log
_changed_alloc_ns_list_log=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme changed-alloc-ns-list-log options" _changed_alloc_ns_list_log
;;
(dispersed-ns-participating-nss-log)
local _dns_psub_log
_dns_psub_log=(
/dev/nvme':supply a device to use (required)'
--namespace-id=':show infos for namespace <nsid>'
-n':alias of --namespace-id'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme dispersed-ns-participating-nss-log" _dns_psub_log
;;
(reachability-groups-log)
local _rg_log
_rg_log=(
/dev/nvme':supply a device to use (required)'
--groups-only':Return Groups Only'
-g':alias for --groups-only'
--rae':Retain an Asynchronous Event'
-r':alias for --rae'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme reachability-groups-log" _rg_log
;;
(reachability-associations-log)
local _ra_log
_ra_log=(
/dev/nvme':supply a device to use (required)'
--associations-only':Return Associations Only'
-a':alias for --associations-only'
--rae':Retain an Asynchronous Event'
-r':alias for --rae'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme reachability-associationsroups-log" _ra_log
;;
(host-discovery-log)
local _hd_log
_hd_log=(
/dev/nvme':supply a device to use (required)'
--all-host-entries':All Host Entries'
-a':alias for --all-host-entries'
--rae':Retain an Asynchronous Event'
-r':alias for --rae'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme host-discovery-log" _hd_log
;;
(ave-discovery-log)
local _ad_log
_ad_log=(
/dev/nvme':supply a device to use (required)'
--rae':Retain an Asynchronous Event'
-r':alias for --rae'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ave-discovery-log" _ad_log
;;
(pull-model-ddr-req-log)
local _pmdr_log
_pmdr_log=(
/dev/nvme':supply a device to use (required)'
--rae':Retain an Asynchronous Event'
-r':alias for --rae'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--output-format=':Output format: normal|json|binary'
-o ':alias for --output-format'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme pull-model-ddr-req-log" _pmdr_log
;;
(version)
local _version
@ -2667,6 +2847,16 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme solidigm options" _solidigm
;;
(fdp)
local _fdp
_fdp=(
feature':Show, enable or disable FDP configuration'
version':Shows the plug-in version'
help':Display this help'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme fdp options" _fdp
;;
(micron)
local micron
_micron=(
@ -2722,7 +2912,8 @@ _nvme () {
get-property write-zeroes write-uncor verify sanitize sanitize-log reset
subsystem-reset ns-rescan get-lba-status dsm discover connect-all connect
dim disconnect disconnect-all gen-hostnqn show-hostnqn tls-key dir-receive
dir-send virt-mgmt rpmb version ocp solidigm dapustor
dir-send virt-mgmt rpmb version ocp solidigm dapustor mgmt-addr-list-log
rotational-media-info-log changed-alloc-ns-list-log fdp
)
_arguments '*:: :->subcmds'
_describe -t commands "help: infos on a specific nvme command, or provide no option to see a synopsis of all nvme commands" _h

View file

@ -340,7 +340,8 @@ nvme_list_opts () {
--force-unit-access -f --prinfo= -p --ref-tag= -r \
--app-tag-mask= -m --app-tag= -a \
--storage-tag= -S --storage-tag-check -C \
--dir-type= -T --dir-spec= -S --timeout= -t"
--dir-type= -T --dir-spec= -S --namespace-zeroes -Z \
--timeout= -t"
;;
"write-uncor")
opts+=" --namespace-id= -n --start-block= -s \
@ -464,7 +465,7 @@ nvme_list_opts () {
--nmimt= -m --nmd0= -0 --nmd1= -1 --input-file= -i"
;;
"get-reg")
opts+=" --offset, -O --human-readable -H --cap --vs --cmbloc \
opts+=" --offset= -O --human-readable -H --cap --vs --cmbloc \
--cmbsz --bpinfo --cmbsts --cmbebs --cmbswtp --crto \
--pmrcap --pmrsts --pmrebs --pmrswtp --intms --intmc \
--cc --csts --nssr --aqa --asq --acq --bprsel --bpmbl \
@ -472,10 +473,55 @@ nvme_list_opts () {
--output-format -o --verbose -v --timeout= -t"
;;
"set-reg")
opts+=" --offset, -O --value= -V --mmio32 -m --intms= --intmc= \
opts+=" --offset= -O --value= -V --mmio32 -m --intms= --intmc= \
--cc= --csts= --nssr= --aqa= --asq= --acq= --bprsel= \
--bpmbl= --cmbmsc= --nssd= --pmrctl= --pmrmscl= \
--pmrmscu= --output-format= -o --verbose= -v \
--pmrmscu= --output-format= -o --verbose -v \
--timeout= -t"
;;
"io-mgmt-recv")
opts+=" --namespace-id= -n --mos= -s --mo= -m --data= -d \
--data-len= -l --output-format= -o --verbose -v \
--timeout= -t"
;;
"io-mgmt-send")
opts+=" --namespace-id= -n --mos= -s --mo= -m --data= -d \
--data-len= -l --output-format= -o --verbose -v \
--timeout= -t"
;;
"mgmt-addr-list-log")
opts+=" --verbose -v --output-format= -o --timeout= -t"
;;
"rotational-media-info-log")
opts+=" --endg-id= -e --verbose -v --output-format= -o \
--timeout= -t"
;;
"changed-alloc-cns-list-log")
opts+=" --output-format= -o --raw-binary -b --verbose -v \
--timeout= -t"
;;
"dispersed-ns-participating-nss-log")
opts+=" --namespace-id= -n --verbose -v --output-format= -o \
--timeout= -t"
;;
"reachability-groups-log")
opts+=" --groups-only -g --rae -r --verbose -v \
--output-format= -o --timeout= -t"
;;
"reachability-associations-log")
opts+=" --associations-only -a --rae -r --verbose -v \
--output-format= -o --timeout= -t"
;;
"host-discovery-log")
opts+=" --all-host-entries -a --rae -r --verbose -v \
--output-format= -o --timeout= -t"
;;
"ave-discovery-log")
opts+=" --rae -r --verbose -v --output-format= -o \
--timeout= -t"
;;
"pull--ddc-req-log")
opts+=" --rae -r --verbose -v --output-format= -o \
--timeout= -t"
;;
"version")
@ -1202,6 +1248,41 @@ plugin_solidigm_opts () {
return 0
}
plugin_fdp_opts () {
local opts=""
local compargs=""
local nonopt_args=0
for (( i=0; i < ${#words[@]}-1; i++ )); do
if [[ ${words[i]} != -* ]]; then
let nonopt_args+=1
fi
done
if [ $nonopt_args -eq 3 ]; then
opts="/dev/nvme* "
fi
opts+=" "
case "$1" in
"feature")
opts+=" --endgrp-id= -e --enable-conf-idx= -c \
--disable -d --verbose -v"
;;
"version")
opts+=$NO_OPTS
;;
"help")
opts+=$NO_OPTS
;;
esac
COMPREPLY+=( $( compgen $compargs -W "$opts" -- $cur ) )
return 0
}
plugin_transcend_opts () {
local opts=""
local compargs=""
@ -1597,6 +1678,7 @@ _nvme_subcmds () {
clear-fw-activate-history vs-fw-activate-history log-page-directory \
vs-drive-info cloud-SSDplugin-version market-log \
smart-log-add temp-stats workload-tracker version help"
[fdp]="feature version help"
[transcend]="healthvalue badblock"
[dapustor]="smart-log-add"
[zns]="id-ctrl id-ns zone-mgmt-recv \
@ -1633,6 +1715,7 @@ _nvme_subcmds () {
[dera]="plugin_dera_opts"
[sfx]="plugin_sfx_opts"
[solidigm]="plugin_solidigm_opts"
[fdp]="plugin_fdp_opts"
[transcend]="plugin_transcend_opts"
[dapustor]="plugin_dapustor_opts"
[zns]="plugin_zns_opts"
@ -1660,7 +1743,7 @@ _nvme_subcmds () {
security-send security-recv get-lba-status \
resv-acquire resv-register resv-release \
resv-report dsm copy flush compare read \
write write-zeros write-uncor verify \
write write-zeroes write-uncor verify \
sanitize sanitize-log reset subsystem-reset \
ns-rescan show-regs discover connect-all \
connect disconnect disconnect-all gen-hostnqn \
@ -1668,7 +1751,11 @@ _nvme_subcmds () {
rpmb boot-part-log fid-support-effects-log \
supported-log-pages lockdown media-unit-stat-log \
supported-cap-config-log dim show-topology list-endgrp \
nvme-mi-recv nvme-mi-send get-reg set-reg"
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \
rotational-media-info-log changed-alloc-ns-list-log \
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \
reachability-groups-log reachability-associations-log \
host-discovery-log ave-discovery-log pull--ddc-req-log"
# Add plugins:
for plugin in "${!_plugin_subcmds[@]}"; do