Evidently the block device starts at 767.

MFC after:	1 month
This commit is contained in:
Kip Macy 2008-08-24 04:42:41 +00:00
parent db8502672e
commit 2be5c100cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182091

View File

@ -142,7 +142,7 @@ xlvbd_add(blkif_sector_t capacity, int unit, uint16_t vdisk_info, uint16_t secto
{
struct xb_softc *sc;
int error = 0;
int unitno = unit - 768;
int unitno = unit - 767;
sc = (struct xb_softc *)malloc(sizeof(*sc), M_DEVBUF, M_WAITOK|M_ZERO);
sc->xb_unit = unitno;