diff options
author | phk <phk@FreeBSD.org> | 2000-09-26 19:09:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-09-26 19:09:44 +0000 |
commit | ebec87c8dc7c87d06c3464887ccbe3954c5ce301 (patch) | |
tree | 06bad91019c4277070b62e841276665b7a6c43b8 /sys/dev | |
parent | 0ccb8b64f8f326903faee2b7fd10374cfd422edf (diff) | |
download | FreeBSD-src-ebec87c8dc7c87d06c3464887ccbe3954c5ce301.zip FreeBSD-src-ebec87c8dc7c87d06c3464887ccbe3954c5ce301.tar.gz |
Call make_dev() with the correct minor number.
(no, this driver still doesn't play ball with DEVFS)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/vn/vn.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |