Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2019 16:46:33 +0000 (UTC)
From:      Chuck Tuffli <chuck@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r345454 - stable/12/usr.sbin/bhyve
Message-ID:  <201903231646.x2NGkXNN088250@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: chuck
Date: Sat Mar 23 16:46:33 2019
New Revision: 345454
URL: https://svnweb.freebsd.org/changeset/base/345454

Log:
  MFC r345170:
  bhyve(8): Fix bhyve's NVMe Identify Namespace data
  
  Approved by:	imp (mentor)

Modified:
  stable/12/usr.sbin/bhyve/pci_nvme.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/bhyve/pci_nvme.c
==============================================================================
--- stable/12/usr.sbin/bhyve/pci_nvme.c	Sat Mar 23 16:42:05 2019	(r345453)
+++ stable/12/usr.sbin/bhyve/pci_nvme.c	Sat Mar 23 16:46:33 2019	(r345454)
@@ -358,7 +358,7 @@ pci_nvme_init_nsdata(struct pci_nvme_softc *sc)
 	nd->nuse = nd->nsze;
 
 	/* Get LBA and backstore information from backing store */
-	nd->nlbaf = 1;
+	nd->nlbaf = 0; /* NLBAF is a 0's based value (i.e. 1 LBA Format) */
 	/* LBA data-sz = 2^lbads */
 	nd->lbaf[0] = sc->nvstore.sectsz_bits << NVME_NS_DATA_LBAF_LBADS_SHIFT;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903231646.x2NGkXNN088250>