From ebec87c8dc7c87d06c3464887ccbe3954c5ce301 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 26 Sep 2000 19:09:44 +0000 Subject: 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(-) (limited to 'sys/dev/vn') diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c index a788b8a..45bedbd 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); } -- cgit v1.1