From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Tue, 29 May 2018 14:52:49 +0200 Subject: [PATCH 09/10] nvmet: Set mnan correctly In-Reply-To: <20180529101431.62271-10-hare@suse.de> References: <20180529101431.62271-1-hare@suse.de> <20180529101431.62271-10-hare@suse.de> Message-ID: <20180529125249.GI7376@lst.de> On Tue, May 29, 2018@12:14:30PM +0200, Hannes Reinecke wrote: > id->nn = cpu_to_le32(ctrl->subsys->max_nsid); > - id->mnan = cpu_to_le32(NVMET_MAX_NAMESPACES); > + id->mnan = cpu_to_le32(ctrl->subsys->nr_namespaces); "Maximum Number of Allocated Namespaces (MNAN): This field indicates the maximum number of allocated namespaces." maximum != current