From f101401a90858364a8f5b6900c1740c3a5af54c5 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 3 Jul 2000 13:48:37 +0000 Subject: Pull the rug under block mode devices. they return ENXIO on open(2) now. --- sys/miscfs/specfs/spec_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/miscfs') diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index d3aa1d8..cbe52f4 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -146,14 +146,14 @@ spec_open(ap) if (vp->v_mount && (vp->v_mount->mnt_flag & MNT_NODEV)) return (ENXIO); - if (vp->v_type == VBLK && !(dev->si_flags & SI_WHINED)) { + if (vp->v_type == VBLK) { if (*dev->si_name != '\0') printf("Device \"%s\" ", dev->si_name); else printf("Device char-major=%d minor=0x%x ", major(dev), minor(dev)); - printf("opened in block mode, convert to char mode with /dev/MAKEDEV before 2000-07-01\n"); - dev->si_flags |= SI_WHINED; + printf("failed attempt to open in block mode\n"); + return ENXIO; } dsw = devsw(dev); if ( (dsw == NULL) || (dsw->d_open == NULL)) -- cgit v1.1