From 942d2840d276a24dc4a01cdf174f89037c0e9465 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Wed, 15 Feb 2023 10:46:34 -0500 Subject: [PATCH] nvme: fix /dev/spkd/ typo 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 Signed-off-by: Stefan Hajnoczi --- nvme-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme-print.c b/nvme-print.c index ec98fe30..f7c4053c 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -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; /* -- 2.50.1