]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: call nvme_get_smart_log() with false
authornick black <dankamongmen@gmail.com>
Sun, 13 Nov 2022 22:34:34 +0000 (17:34 -0500)
committerDaniel Wagner <dwagner@suse.de>
Wed, 16 Nov 2022 09:32:36 +0000 (10:32 +0100)
Changing this to true resulted in my Western Digital 970 EVO Pro NVMe
SSDs returning all zeros for smartlog information. Reverts change made
in cc73f65fc016 ("nvme: Add wrappers for Get Log page helpers")

Resolves #1729.

Signed-off-by: nick black <dankamongmen@gmail.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 34af93314bc51328f71b9fe23c35b3164c9aecff..9e0b3670fc88e76e5229017c6fdbeee42414c8e9 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -452,7 +452,7 @@ static int get_smart_log(int argc, char **argv, struct command *cmd, struct plug
        if (cfg.human_readable)
                flags |= VERBOSE;
 
-       err = nvme_cli_get_log_smart(dev, cfg.namespace_id, true,
+       err = nvme_cli_get_log_smart(dev, cfg.namespace_id, false,
                                 &smart_log);
        if (!err)
                nvme_show_smart_log(&smart_log, cfg.namespace_id,