Skip to content

Commit 3711526

Browse files
ikegami-tigaw
authored andcommitted
completions: add changed-alloc-ns-list-log command
Both bash and zsh completions updated for the command. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent c76e0bc commit 3711526

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

completions/_nvme

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ _nvme () {
111111
'io-mgmt-recv:send an I/O management receive command'
112112
'io-mgmt-send:send an I/O management send command'
113113
'mgmt-addr-list-log:retrieve management address list log'
114+
'changed-ns-list-log:retrieve changed allocated namespaces log'
114115
'version:show the program version'
115116
'ocp:OCP cloud SSD extensions'
116117
'solidigm:Solidigm plug-in extensions'
@@ -2639,11 +2640,22 @@ _nvme () {
26392640
-v':alias for --verbose'
26402641
--output-format=':Output format: normal|json|binary'
26412642
-o ':alias for --output-format'
2643+
_describe -t commands "nvme rotational-media-info-log" _rmi_log
2644+
(changed-alloc-ns-list-log)
2645+
local _changed_alloc_ns_list_log
2646+
_changed_alloc_ns_list_log=(
2647+
/dev/nvme':supply a device to use (required)'
2648+
--output-format=':Output format: normal|json|binary'
2649+
-o':alias for --output-format'
2650+
--raw-binary':dump infos in binary format'
2651+
-b':alias of --raw-binary'
2652+
--verbose':Increase the information detail in the output.'
2653+
-v':alias for --verbose'
26422654
--timeout=':value for timeout'
26432655
-t ':alias for --timeout'
26442656
)
26452657
_arguments '*:: :->subcmds'
2646-
_describe -t commands "nvme rotational-media-info-log" _rmi_log
2658+
_describe -t commands "nvme changed-alloc-ns-list-log options" _changed_alloc_ns_list_log
26472659
;;
26482660
(version)
26492661
local _version
@@ -2757,7 +2769,7 @@ _nvme () {
27572769
subsystem-reset ns-rescan get-lba-status dsm discover connect-all connect
27582770
dim disconnect disconnect-all gen-hostnqn show-hostnqn tls-key dir-receive
27592771
dir-send virt-mgmt rpmb version ocp solidigm dapustor mgmt-addr-list-log
2760-
rotational-media-info-log
2772+
rotational-media-info-log changed-alloc-ns-list-log
27612773
)
27622774
_arguments '*:: :->subcmds'
27632775
_describe -t commands "help: infos on a specific nvme command, or provide no option to see a synopsis of all nvme commands" _h

completions/bash-nvme-completion.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@ nvme_list_opts () {
486486
opts+=" --endg-id= -e --verbose -v --output-format= -o \
487487
--timeout= -t"
488488
;;
489+
"changed-alloc-cns-list-log")
490+
opts+=" --output-format= -o --raw-binary -b --verbose -v \
491+
--timeout= -t"
492+
;;
489493
"version")
490494
opts+=$NO_OPTS
491495
;;
@@ -1677,7 +1681,7 @@ _nvme_subcmds () {
16771681
supported-log-pages lockdown media-unit-stat-log \
16781682
supported-cap-config-log dim show-topology list-endgrp \
16791683
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \
1680-
rotational-media-info-log"
1684+
rotational-media-info-log changed-alloc-ns-list-log"
16811685

16821686
# Add plugins:
16831687
for plugin in "${!_plugin_subcmds[@]}"; do

0 commit comments

Comments
 (0)