From 355b0652dd69d49431fe4dd76079340a6b9929de Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 26 Sep 2000 19:09:44 +0000 Subject: [PATCH] Call make_dev() with the correct minor number. (no, this driver still doesn't play ball with DEVFS) --- sys/dev/vn/vn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c index a788b8afdef..45bedbd22aa 100644 --- a/sys/dev/vn/vn.c +++ b/sys/dev/vn/vn.c @@ -189,7 +189,8 @@ vnfindvn(dev_t dev) bzero(vn, sizeof *vn); vn->sc_unit = unit; dev->si_drv1 = vn; - make_dev(&vn_cdevsw, 0, + make_dev(&vn_cdevsw, + dkmakeminor(unit, WHOLE_DISK_SLICE, RAW_PART), UID_ROOT, GID_OPERATOR, 0640, "vn%d", unit); SLIST_INSERT_HEAD(&vn_list, vn, sc_list); }