summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-03-27 18:50:10 +0000
committerbde <bde@FreeBSD.org>1996-03-27 18:50:10 +0000
commita0f80d71f4d5419c591739bd1c8ff85a3421cd7e (patch)
treef9c3f8c23a6c10cff1491ff0a22678a78ee71464 /sys/dev
parent2296883240b49b7a7e262a5bb647c5de62e4d816 (diff)
downloadFreeBSD-src-a0f80d71f4d5419c591739bd1c8ff85a3421cd7e.zip
FreeBSD-src-a0f80d71f4d5419c591739bd1c8ff85a3421cd7e.tar.gz
Fixed group of disk devices (was wheel or games, now operator).
Added scsi control devices. Converted almost everything that I changed to use devfs_add_devswf() and verbose id macros. st.c: Renamed enrst* to erst* since that's what the current name is (enrst seems to be an old name).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vn/vn.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index 1168cc0..73c892a 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -624,7 +624,6 @@ vn_drvinit(void *unused)
dev_t dev;
#ifdef DEVFS
int mynor;
- char name[32];
int unit;
struct vn_softc *vn;
#endif
@@ -639,15 +638,16 @@ vn_drvinit(void *unused)
for (unit = 0; unit < NVN; unit++) {
vn = vn_softc[unit];
mynor = dkmakeminor(unit, WHOLE_DISK_SLICE, RAW_PART);
- sprintf(name, "rvn%d", unit);
/*
* XXX not saving tokens yet. The vn devices don't
* exist until after they have been opened :-).
*/
- devfs_add_devsw("/", name + 1, &vn_bdevsw, mynor,
- DV_BLK, 0, 0, 0640);
- devfs_add_devsw("/", name, &vn_cdevsw, mynor,
- DV_CHR, 0, 0, 0640);
+ devfs_add_devswf(&vn_bdevsw, mynor, DV_BLK,
+ UID_ROOT, GID_OPERATOR, 0640,
+ "vn%d", unit);
+ devfs_add_devswf(&vn_cdevsw, mynor, DV_CHR,
+ UID_ROOT, GID_OPERATOR, 0640,
+ "rvn%d", unit);
}
#endif
}
OpenPOWER on IntegriCloud