]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
completions: Add bash completions for telemetry string log page
authorArunpandian J <arun.j@samsung.com>
Tue, 12 Dec 2023 12:07:04 +0000 (17:37 +0530)
committerDaniel Wagner <wagi@monom.org>
Tue, 12 Dec 2023 14:52:43 +0000 (15:52 +0100)
Signed-off-by: Arunpandian J <arun.j@samsung.com>
completions/_nvme
completions/bash-nvme-completion.sh

index 3bd8afc3af47f3024fa1013047e7fc13136b4e08..0d28788c7553b6fe1df90e864bca0b1470e178cf 100644 (file)
@@ -253,6 +253,16 @@ _nvme () {
                                _arguments '*:: :->subcmds'
                                _describe -t commands "nvme ocp set-dssd-power-state-feature options" _set_dssd_power_state_feature
                                ;;
+                       (telemetry-string-log)
+                               local _telemetry_string_log
+                               _telemetry_string_log=(
+                               /dev/nvme':supply a device to use (required)'
+                               --output-file=':Output file name with path'
+                               -o':alias for --output-file'
+                               )
+                               _arguments '*:: :->subcmds'
+                               _describe -t commands "nvme ocp internal-log options" _internal_log
+                               ;;
                        (*)
                                _files
                                ;;
@@ -2062,6 +2072,7 @@ _nvme () {
                        vs-fw-activate-history':Get firmware activation history log'
                        device-capability-log':Get Device capability log'
                        set-dssd-power-state-feature':Set DSSD Power State'
+                       telemetry-string-log':Retrieve Telemetry string Log Page'
                        )
                        _arguments '*:: :->subcmds'
                        _describe -t commands "nvme ocp options" _ocp
index f431a70431d0dae7187850d022348da8805e75ec..5d624275fe5f3a09742ccedb86b623b1b52ebae0 100644 (file)
@@ -1358,6 +1358,9 @@ plugin_ocp_opts () {
                "set-dssd-power-state-feature")
                opts+=" --power-state= -p --no-uuid -n --save -s"
                        ;;
+               "telemetry-string-log")
+               opts+=" --output-file= -o"
+                       ;;
                "help")
                opts+=$NO_OPTS
                        ;;
@@ -1427,7 +1430,7 @@ _nvme_subcmds () {
                        clear-fw-activate-history eol-plp-failure-mode \
                        clear-pcie-correctable-error-counters \
                        vs-fw-activate-history device-capability-log \
-                       set-dssd-power-state-feature"
+                       set-dssd-power-state-feature telemetry-string-log"
        )
 
        # Associative array mapping plugins to corresponding option completions