svn commit: r345454 - stable/12/usr.sbin/bhyve

Chuck Tuffli chuck at FreeBSD.org
Sat Mar 23 16:46:35 UTC 2019


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;
 


More information about the svn-src-all mailing list