diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:09:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:09:56 +0000 |
commit | 2822061d0e17d5acdbc46740b535021115f11071 (patch) | |
tree | 8c14f8690f3689562c5fd1d550e1883629ced2a8 /completions/_nvme | |
parent | Adding upstream version 2.10.2. (diff) | |
download | nvme-cli-2822061d0e17d5acdbc46740b535021115f11071.tar.xz nvme-cli-2822061d0e17d5acdbc46740b535021115f11071.zip |
Adding upstream version 2.11.upstream/2.11upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/_nvme')
-rw-r--r-- | completions/_nvme | 105 |
1 files changed, 96 insertions, 9 deletions
diff --git a/completions/_nvme b/completions/_nvme index 47fdd9d..f34b36b 100644 --- a/completions/_nvme +++ b/completions/_nvme @@ -113,6 +113,7 @@ _nvme () { 'ocp:OCP cloud SSD extensions' 'solidigm:Solidigm plug-in extensions' 'micron:Micron plug-in extensions' + 'dapustor:DapuStor plug-in extensions' 'help:print brief descriptions of all nvme commands' 'json:dump output in json format' ) @@ -358,6 +359,33 @@ _nvme () { _arguments '*:: :->subcmds' _describe -t commands "nvme ocp set-error-injection options" _set_error_injection ;; + (hardware-component-log) + local _hardware_component_log + _hardware_component_log=( + /dev/nvme':supply a device to use (required)' + --comp-id=':component identifier' + -i':alias for --comp-id' + --list':list component descriptions' + -v':alias for --list' + --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 ocp hardware-component-log options" _hardware_component_log + (set-telemetry-profile) + local _ocp_set_telemetry_profile_feature + _ocp_set_telemetry_profile_feature=( + /dev/nvme':supply a device to use (required)' + --telemetry-profile-select=':Telemetry Profile Select' + -t':alias for --telemetry-profile-select' + ) + _arguments '*:: :->subcmds' + _describe -t commands "nvme ocp set-telemetry-profile options" _ocp_set_telemetry_profile_feature + ;; (*) _files ;; @@ -533,15 +561,56 @@ _nvme () { _arguments '*:: :->subcmds' _describe -t commands "nvme solidigm vs-drive-info" _vs_drive_info ;; - (set-telemetry-profile) - local _ocp_set_telemetry_profile_feature - _ocp_set_telemetry_profile_feature=( - /dev/nvme':supply a device to use (required)' - --telemetry-profile-select=':Telemetry Profile Select' - -t':alias for --telemetry-profile-select' + (workload-tracker) + local _workload_tracker + _workload_tracker=( + --enable':Enable Workload Tracker' + -e':alias for --enable' + --disable':Disable Workload Tracker' + -d':alias for --disable' + --sample-time=':Sample time in seconds' + -s':alias for --sample-time' + --type=':Workload Tracker type' + -t':alias for --type' + --run-time=':Run time in seconds' + -r':alias for --run-time' + --flush-freq=':Flush frequency in seconds' + -f':alias for --flush-freq' + --wall-clock':Use wall clock time' + -w':alias for --wall-clock' + --trigger-field=':Trigger field' + -T':alias for --trigger-field' + --trigger-threshold=':Trigger threshold' + -V':alias for --trigger-threshold' + --trigger-on-delta':Trigger on delta' + -D':alias for --trigger-on-delta' + --trigger-on-latency':Trigger on latency' + -L':alias for --trigger-on-latency' + --verbose':Increase output verbosity' + -v':alias for --verbose' ) _arguments '*:: :->subcmds' - _describe -t commands "nvme ocp set-telemetry-profile options" _ocp_set_telemetry_profile_feature + _describe -t commands "nvme solidigm workload-tracker options" _workload_tracker + ;; + (*) + _files + ;; + esac + ;; + (dapustor) + case ${words[2]} in + (smart-log-add) + local _smart_log_add + _smart_log_add=( + --namespace-id':(optional) desired namespace' + -n':alias for --namespace-id' + --output-format':Output format: normal|json|binary' + -o':alias for --output-format' + --raw-binary':dump log in binary format' + -b':alias of --raw-binary' + ) + _arguments '*:: :->subcmds' + _describe -t commands "nvme dapustor smart-log-add options" _smart_log_add ;; (*) _files @@ -1176,6 +1245,10 @@ _nvme () { -b':alias to --raw-binary' --timeout=':value for timeout' -t':alias of --timeout' + --human-readable':show feature in readable format' + -H':alias of --human-readable' + --changed':show feature changed' + -C':alias of --changed' ) _arguments '*:: :->subcmds' _describe -t commands "nvme get-feature options" _getf @@ -1452,10 +1525,12 @@ _nvme () { -n':alias of --owpass' --ause':Allow unrestricted sanitize exit' -u':alias of --ause' - --sanact=':Sanitize action: 1 = Exit failure mode, 2 = Start block erase, 3 = Start overwrite, 4 = Start crypto erase' + --sanact=':Sanitize action: 1 = Exit failure mode, 2 = Start block erase, 3 = Start overwrite, 4 = Start crypto erase, 5 = Exit media verification' -a':alias of --sanact' --ovrpat=':Overwrite pattern' -p':alias of --ovrpat' + --emvs=':Enter media verification state' + -e':alias of --emvs' ) _arguments '*:: :->subcmds' _describe -t commands "nvme sanitize options" _sanitize @@ -2562,6 +2637,7 @@ _nvme () { tcg-configuration-log':tcg configuration log' get-error-injection':get error injection' set-error-injection':set error injection' + hardware-component-log':retrieve hardware component log' ) _arguments '*:: :->subcmds' _describe -t commands "nvme ocp options" _ocp @@ -2583,6 +2659,7 @@ _nvme () { log-page-directory':Retrieve log page directory' temp-stats':Retrieve Temperature Statistics log' vs-drive-info':Retrieve drive information' + workload-tracker':Enable/Disable and configure Workload Tracker' cloud-SSDplugin-version':Prints plug-in OCP version' version':Shows the program version' help':Display this help' @@ -2618,6 +2695,16 @@ _nvme () { _arguments '*:: :->subcmds' _describe -t commands "nvme micron options" _micron ;; + (dapustor) + local _dapustor + _dapustor=( + smart-log-add':Retrieve DapuStor SMART Log' + version':Shows the program version' + help':Display this help' + ) + _arguments '*:: :->subcmds' + _describe -t commands "nvme dapustor options" _dapustor + ;; (help) local _h _h=( id-ctrl id-ns list-ns id-iocs create-ns delete-ns attach-ns detach-ns @@ -2635,7 +2722,7 @@ _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 + dir-send virt-mgmt rpmb version ocp solidigm dapustor ) _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 |