[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220810133953.5411-1-meljbao@gmail.com>
Date: Wed, 10 Aug 2022 21:39:54 +0800
From: Linjun Bao <meljbao@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Linjun Bao <meljbao@...il.com>, Keith Busch <kbusch@...nel.org>,
Jens Axboe <axboe@...com>, Christoph Hellwig <hch@....de>,
Sagi Grimberg <sagi@...mberg.me>,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] nvme: align "fake" nqn with spec 1.3
Replace '.' with '-' to align "fake" nqn format with nvme spec 1.3 or newer.
Signed-off-by: Linjun Bao <meljbao@...il.com>
---
drivers/nvme/host/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index d2ea6ca37c41..d6fb91bbcf9e 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2504,7 +2504,7 @@ static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ct
/* Generate a "fake" NQN per Figure 254 in NVMe 1.3 + ECN 001 */
off = snprintf(subsys->subnqn, NVMF_NQN_SIZE,
- "nqn.2014.08.org.nvmexpress:%04x%04x",
+ "nqn.2014-08.org.nvmexpress:%04x%04x",
le16_to_cpu(id->vid), le16_to_cpu(id->ssvid));
memcpy(subsys->subnqn + off, id->sn, sizeof(id->sn));
off += sizeof(id->sn);
--
2.25.1
Powered by blists - more mailing lists