diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-02-20 19:44:59 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-02-20 19:44:59 +0000 |
commit | 0c1b18fc6b2ebab61fbb19e27229ea52709f8a84 (patch) | |
tree | 194af5960878be33fe98374f0d94d1d881983bee /sys | |
parent | 0e66f1df473f4dc139a83f21190d26dcb9605425 (diff) |
Remove historical yet completely undocumented ``is this a tape'' ioctl for
block devices where ioctl request is zero and data is B_TAPE, which no sane
userland program uses those days.
General disgust and ok deraadt@ millert@ weingart@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/spec_vnops.c | 4 | ||||
-rw-r--r-- | sys/miscfs/specfs/spec_vnops.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c index 04065b17bd7..7e4a2f070f1 100644 --- a/sys/kern/spec_vnops.c +++ b/sys/kern/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.31 2005/12/31 21:22:35 miod Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.32 2006/02/20 19:44:58 miod Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -435,8 +435,6 @@ spec_ioctl(v) ap->a_fflag, ap->a_p)); case VBLK: - if (ap->a_command == 0 && (long)ap->a_data == B_TAPE) - return ((bdevsw[maj].d_type == D_TAPE) ? 0 : 1); return ((*bdevsw[maj].d_ioctl)(dev, ap->a_command, ap->a_data, ap->a_fflag, ap->a_p)); diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index 04065b17bd7..7e4a2f070f1 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.31 2005/12/31 21:22:35 miod Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.32 2006/02/20 19:44:58 miod Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -435,8 +435,6 @@ spec_ioctl(v) ap->a_fflag, ap->a_p)); case VBLK: - if (ap->a_command == 0 && (long)ap->a_data == B_TAPE) - return ((bdevsw[maj].d_type == D_TAPE) ? 0 : 1); return ((*bdevsw[maj].d_ioctl)(dev, ap->a_command, ap->a_data, ap->a_fflag, ap->a_p)); |