nvme-fabrics: generate spec-compliant UUID NQNs
authorDaniel Verkamp <daniel.verkamp@intel.com>
Wed, 30 Aug 2017 22:18:19 +0000 (15:18 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Sep 2017 07:48:01 +0000 (09:48 +0200)
The default host NQN, which is generated based on the host's UUID,
does not follow the UUID-based NQN format laid out in the NVMe 1.3
specification.  Remove the "NVMf:" portion of the NQN to match the spec.

Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Cc: stable@vger.kernel.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c

index 53a9598e3aee3b0118261a8731f010faa5ce353a..47307752dc65d3b9e78f7ab736cfc33831c6522b 100644 (file)
@@ -75,7 +75,7 @@ static struct nvmf_host *nvmf_host_default(void)
 
        kref_init(&host->ref);
        snprintf(host->nqn, NVMF_NQN_SIZE,
-               "nqn.2014-08.org.nvmexpress:NVMf:uuid:%pUb", &host->id);
+               "nqn.2014-08.org.nvmexpress:uuid:%pUb", &host->id);
 
        mutex_lock(&nvmf_hosts_mutex);
        list_add_tail(&host->list, &nvmf_hosts);