nvme: pad fake subsys NQN vid and ssvid with zeros
authorKeith Busch <keith.busch@intel.com>
Tue, 8 Jan 2019 16:37:43 +0000 (09:37 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Jan 2019 18:47:06 +0000 (13:47 -0500)
commit3da584f57133e51aeb84aaefae5e3d69531a1e4f
tree49d06317a61c51315b92cf10016cd7fdabd870c8
parentc7055fd15ff46d92eb0dd1c16a4fe010d58224c8
nvme: pad fake subsys NQN vid and ssvid with zeros

We need to preserve the leading zeros in the vid and ssvid when generating
a unique NQN. Truncating these may lead to naming collisions.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c