diff options
author | phk <phk@FreeBSD.org> | 2000-05-09 18:53:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-05-09 18:53:57 +0000 |
commit | bddf42895281c47274c73bdef6919113442fc8c5 (patch) | |
tree | 9ed6efdf333e6c479b5c3636ba01cf39f77af029 /sys/fs | |
parent | 078cc10d670cf71409979b5668870df0d83cbd40 (diff) | |
download | FreeBSD-src-bddf42895281c47274c73bdef6919113442fc8c5.zip FreeBSD-src-bddf42895281c47274c73bdef6919113442fc8c5.tar.gz |
Change the "bdev-whiner" to whine when open is attempted and extend
the deadline a month.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 85ffdbd..8fc7909 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -146,6 +146,15 @@ 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 (*dev->si_name != '\0') + printf("Device \"%s\" ", dev->si_name); + else + printf("Device char-major=%d minor=%d ", + 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; + } dsw = devsw(dev); if ( (dsw == NULL) || (dsw->d_open == NULL)) return ENXIO; |