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

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;