Adding upstream version 2.14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
94a061187a
commit
dbdc28cb89
572 changed files with 4636 additions and 1730 deletions
|
@ -123,6 +123,7 @@ _nvme () {
|
|||
'solidigm:Solidigm plug-in extensions'
|
||||
'fdp:FDP plug-in extensions'
|
||||
'micron:Micron plug-in extensions'
|
||||
'mangoboost:MangoBoost plug-in extensions'
|
||||
'dapustor:DapuStor plug-in extensions'
|
||||
'help:print brief descriptions of all nvme commands'
|
||||
'json:dump output in json format'
|
||||
|
@ -396,6 +397,48 @@ _nvme () {
|
|||
_arguments '*:: :->subcmds'
|
||||
_describe -t commands "nvme ocp set-telemetry-profile options" _ocp_set_telemetry_profile_feature
|
||||
;;
|
||||
(get-latency-monitor)
|
||||
local _ocp_get_latency_monitor_feature
|
||||
_ocp_get_latency_monitor_feature=(
|
||||
/dev/nvme':supply a device to use (required)'
|
||||
--sel=':select from 0 - current, 1 - default, 2 - saved, 3 - supported'
|
||||
-s':alias to --sel'
|
||||
--namespace-id=':valid, invalid and inactive nsid'
|
||||
-n':alias to --namespace-id'
|
||||
--no-uuid':Skip UUID index search'
|
||||
-u':alias for --no-uuid'
|
||||
)
|
||||
_arguments '*:: :->subcmds'
|
||||
_describe -t commands "nvme ocp get-latency-monitor options" _ocp_get_latency_monitor_feature
|
||||
;;
|
||||
(get-clear-pcie-correctable-errors)
|
||||
local _get_clear_pcie_correctable_error_counters
|
||||
_get_clear_pcie_correctable_error_counters=(
|
||||
/dev/nvme':supply a device to use (required)'
|
||||
--sel=':select from 0 - current, 1 - default, 2 - saved, 3 - supported'
|
||||
-s':alias to --sel'
|
||||
--namespace-id=':valid, invalid and inactive nsid'
|
||||
-n':alias to --namespace-id'
|
||||
--no-uuid':Skip UUID index search'
|
||||
-u':alias for --no-uuid'
|
||||
)
|
||||
_arguments '*:: :->subcmds'
|
||||
_describe -t commands "nvme ocp get-clear-pcie-correctable-errors options" _get_clear_pcie_correctable_error_counters
|
||||
;;
|
||||
(get-telemetry-profile)
|
||||
local _ocp_get_telemetry_profile_feature
|
||||
_ocp_get_telemetry_profile_feature=(
|
||||
/dev/nvme':supply a device to use (required)'
|
||||
--sel=':select from 0 - current, 1 - default, 2 - saved, 3 - supported'
|
||||
-s':alias to --sel'
|
||||
--namespace-id=':valid, invalid and inactive nsid'
|
||||
-n':alias to --namespace-id'
|
||||
--no-uuid':Skip UUID index search'
|
||||
-u':alias for --no-uuid'
|
||||
)
|
||||
_arguments '*:: :->subcmds'
|
||||
_describe -t commands "nvme ocp get-telemetry-profile options" _ocp_get_telemetry_profile_feature
|
||||
;;
|
||||
(*)
|
||||
_files
|
||||
;;
|
||||
|
@ -572,6 +615,8 @@ _nvme () {
|
|||
(workload-tracker)
|
||||
local _workload_tracker
|
||||
_workload_tracker=(
|
||||
'--uuid-index=:specify uuid index'
|
||||
'-U:alias for --uuid-index'
|
||||
--enable':Enable Workload Tracker'
|
||||
-e':alias for --enable'
|
||||
--disable':Disable Workload Tracker'
|
||||
|
@ -657,6 +702,30 @@ _nvme () {
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
(mangoboost)
|
||||
case ${words[2]} in
|
||||
(id-ctrl)
|
||||
local _id_ctrl
|
||||
_id_ctrl=(
|
||||
--verbose':Increase output verbosity'
|
||||
-v':alias for --verbose'
|
||||
--output-format':Output format: normal|json|binary'
|
||||
-o':alias for --output-format'
|
||||
--vendor-specific':dump binary vendor field'
|
||||
-V':alias for --vendor-specific'
|
||||
--raw-binary':show identify in binary format'
|
||||
-b':alias for --raw-binary'
|
||||
--human-readable':show identify in readable format'
|
||||
-H':alias for --human-readable'
|
||||
)
|
||||
_arguments '*:: :->subcmds'
|
||||
_describe -t commands "nvme mangoboost id-ctrl options" _id_ctrl
|
||||
;;
|
||||
(*)
|
||||
_files
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
(*)
|
||||
_files
|
||||
;;
|
||||
|
@ -2816,6 +2885,9 @@ _nvme () {
|
|||
get-error-injection':get error injection'
|
||||
set-error-injection':set error injection'
|
||||
hardware-component-log':retrieve hardware component log'
|
||||
get-latency-monitor':Get Latency Monitor Feature'
|
||||
get-clear-pcie-correctable-errors':retrieve clear pcie correctable errors'
|
||||
get-telemetry-profile':retrieve Get Telemetry Profile Feature'
|
||||
)
|
||||
_arguments '*:: :->subcmds'
|
||||
_describe -t commands "nvme ocp options" _ocp
|
||||
|
@ -2893,6 +2965,16 @@ _nvme () {
|
|||
_arguments '*:: :->subcmds'
|
||||
_describe -t commands "nvme dapustor options" _dapustor
|
||||
;;
|
||||
(mangoboost)
|
||||
local _mangoboost
|
||||
_mangoboost=(
|
||||
id-ctrl':Send NVMe Identify Controller'
|
||||
version':Shows the program version'
|
||||
help':Display this help'
|
||||
)
|
||||
_arguments '*:: :->subcmds'
|
||||
_describe -t commands "nvme mangoboost options" _mangoboost
|
||||
;;
|
||||
(help)
|
||||
local _h
|
||||
_h=( id-ctrl id-ns list-ns id-iocs create-ns delete-ns attach-ns detach-ns
|
||||
|
@ -2911,7 +2993,7 @@ _nvme () {
|
|||
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 mgmt-addr-list-log
|
||||
rotational-media-info-log changed-alloc-ns-list-log fdp
|
||||
rotational-media-info-log changed-alloc-ns-list-log fdp mangoboost
|
||||
)
|
||||
_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
|
||||
|
|
|
@ -1229,7 +1229,7 @@ plugin_solidigm_opts () {
|
|||
opts+=" --raw-binary -b"
|
||||
;;
|
||||
"workload-tracker")
|
||||
opts+=" --enable -e --disable -d --sample-time= -s \
|
||||
opts+=" --uuid-index= -U --enable -e --disable -d --sample-time= -s \
|
||||
--type= -t --run-time= -r --flush-freq= -f \
|
||||
--wall-clock -w --trigger-field= -T \
|
||||
--trigger-threshold= -V --trigger-on-delta -D \
|
||||
|
@ -1531,6 +1531,38 @@ plugin_inspur_opts () {
|
|||
return 0
|
||||
}
|
||||
|
||||
plugin_mangoboost_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
|
||||
"id-ctrl")
|
||||
opts+=" --raw-binary -b --human-readable -H \
|
||||
--vendor-specific -v --output-format= -o"
|
||||
;;
|
||||
"help")
|
||||
opts+=$NO_OPTS
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY+=( $( compgen $compargs -W "$opts" -- $cur ) )
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
plugin_ocp_opts () {
|
||||
local opts=""
|
||||
local compargs=""
|
||||
|
@ -1616,6 +1648,18 @@ plugin_ocp_opts () {
|
|||
opts+=" --comp-id= -i --list -l --verbose -v \
|
||||
--output-format -o --timeout= -t"
|
||||
;;
|
||||
"get-latency-monitor")
|
||||
opts+=" --sel= -s \
|
||||
--namespace-id= -n --no-uuid -u"
|
||||
;;
|
||||
"get-clear-pcie-correctable-errors")
|
||||
opts+=" --sel= -s \
|
||||
--namespace-id= -n --no-uuid -u"
|
||||
;;
|
||||
"get-telemetry-profile")
|
||||
opts+=" --sel= -s \
|
||||
--namespace-id= -n --no-uuid -u"
|
||||
;;
|
||||
"help")
|
||||
opts+=$NO_OPTS
|
||||
;;
|
||||
|
@ -1697,7 +1741,9 @@ _nvme_subcmds () {
|
|||
telemetry-string-log set-telemetry-profile \
|
||||
set-dssd-async-event-config get-dssd-async-event-config \
|
||||
get-error-injection set-error-injection \
|
||||
hardware-component-log"
|
||||
hardware-component-log get-latency-monitor \
|
||||
get-clear-pcie-correctable-errors get-telemetry-profile"
|
||||
[mangoboost]="id-ctrl"
|
||||
)
|
||||
|
||||
# Associative array mapping plugins to corresponding option completions
|
||||
|
@ -1723,6 +1769,7 @@ _nvme_subcmds () {
|
|||
[ymtc]="plugin_ymtc_opts"
|
||||
[inspur]="plugin_inspur_opts"
|
||||
[ocp]="plugin_ocp_opts"
|
||||
[mangoboost]="plugin_mangoboost_opts"
|
||||
)
|
||||
|
||||
# Top level commands
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue