From 2be5c100cfc5ff3a9b2821d9ae4705f5c6f7e39e Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Sun, 24 Aug 2008 04:42:41 +0000 Subject: [PATCH] Evidently the block device starts at 767. MFC after: 1 month --- sys/dev/xen/blkfront/blkfront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c index cd42880f32f6..17202b135b35 100644 --- a/sys/dev/xen/blkfront/blkfront.c +++ b/sys/dev/xen/blkfront/blkfront.c @@ -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;