Evidently the block device starts at 767.
MFC after: 1 month
This commit is contained in:
parent
db8502672e
commit
2be5c100cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user