diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-05-09 18:53:57 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-05-09 18:53:57 +0000 |
commit | 192c06ea1be0030f69571ef79967af760e30495b (patch) | |
tree | 395a5f8f1d9e1243ff65d4a1ec87562c1ca824c5 /sys/fs | |
parent | b68d89eb4ca37343e65ae34029400455825a4b06 (diff) | |
download | src-192c06ea1be0030f69571ef79967af760e30495b.tar.gz src-192c06ea1be0030f69571ef79967af760e30495b.zip |
Change the "bdev-whiner" to whine when open is attempted and extend
the deadline a month.
Notes
Notes:
svn path=/head/; revision=60281
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 85ffdbd36393..8fc79092d16d 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; |