]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: fix /dev/spkd/ typo
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 15 Feb 2023 15:46:34 +0000 (10:46 -0500)
committerDaniel Wagner <wagi@monom.org>
Wed, 15 Feb 2023 16:57:06 +0000 (17:57 +0100)
SPDK NVMe character devices are located at /dev/spdk/ according to the
documentation (https://spdk.io/doc/nvme.html#nvme_cuse). Fix the typo.

Fixes: 6c9f792f99aa8782b32635c44e3a573bbb36c830 ("nvme: Print full device path")
Cc: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
nvme-print.c

index ec98fe304c4b0eb005ff29d2016ff2e0e40bd344..f7c4053cf816e20b27abab267b3fb73444cb27e0 100644 (file)
@@ -5120,7 +5120,7 @@ void nvme_generic_full_path(nvme_ns_t n, char *path, size_t len)
        if (stat(path, &st) == 0)
                return;
 
-       snprintf(path, len, "/dev/spkd/ng%dn%d", instance, head_instance);
+       snprintf(path, len, "/dev/spdk/ng%dn%d", instance, head_instance);
        if (stat(path, &st) == 0)
                return;
        /*