Merging upstream version 2.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
078c0dbcc0
commit
635faa7346
571 changed files with 10718 additions and 2738 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue