]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
ocp: update internal-log command telemetry type description
authorTokunori Ikegami <ikegami.t@gmail.com>
Fri, 13 Dec 2024 16:19:23 +0000 (01:19 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 16 Dec 2024 07:46:52 +0000 (08:46 +0100)
Add host0 and host1 help documentation description.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Documentation/nvme-ocp-internal-log.txt
completions/_nvme
plugins/ocp/ocp-nvme.c

index 73933491227be8bfbbe67480555d4d1e719a49c1..26d78ac35118e0e863399b39f0a407d3a9c1201f 100644 (file)
@@ -64,9 +64,10 @@ OPTIONS
 
 -t <type>::
 --telemetry-type=<type>::
-       If set to 1, controller shall capture the Telemetry Host-Initiated data
+       Set the telemetry type to 'host', 'host0', 'host1' or 'controller'.
+       If set to host1, controller shall capture the Telemetry Host-Initiated data
        representing the internal state of the controller at the time the associated
-       Get Log Page command is processed. If cleared to 0, controller shall not
+       Get Log Page command is processed. If set to host0, controller shall not
        update this data.
 
 EXAMPLES
index f34b36b414b7b5b5c52559259d1a7e890dc2a038..ee5483399729426100487a898505a1466c6477ad 100644 (file)
@@ -181,7 +181,7 @@ _nvme () {
                                local _internal_log
                                _internal_log=(
                                /dev/nvme':supply a device to use (required)'
-                               --telemetry-type=':Telemetry Type; host or controller generated'
+                               --telemetry-type=':Telemetry Type; host, host0, host1 or controller generated'
                                -t':alias for --telemetry-type'
                                --data-area=':Telemetry Data Area; 1 or 2'
                                -a':alias for --data-area'
index 602e19cd850965881c3c2a50d7435fc78b6f8045..da3f02cd4a5295a76bc1d7b2e19ddbc8ce11785b 100644 (file)
@@ -1418,7 +1418,7 @@ static int ocp_telemetry_log(int argc, char **argv, struct command *cmd, struct
        const char *output_format = "output format normal|json";
        const char *data_area = "Telemetry Data Area; 1 or 2;\n"
                        "e.g. '-a 1 for Data Area 1.'\n'-a 2 for Data Areas 1 and 2.';\n";
-       const char *telemetry_type = "Telemetry Type; 'host' or 'controller'";
+       const char *telemetry_type = "Telemetry Type; 'host', 'host0', 'host1' or 'controller'";
 
        struct nvme_dev *dev;
        int err = 0;
@@ -1486,7 +1486,8 @@ static int ocp_telemetry_log(int argc, char **argv, struct command *cmd, struct
                else if (!strcmp(opt.telemetry_type, "controller"))
                        tele_type = TELEMETRY_TYPE_CONTROLLER;
                else {
-                       nvme_show_error("telemetry-type should be host or controller.\n");
+                       nvme_show_error(
+                           "telemetry-type should be host, host0, host1 or controller.\n");
                        goto out;
                }
        } else {