From 0c1b18fc6b2ebab61fbb19e27229ea52709f8a84 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 20 Feb 2006 19:44:59 +0000 Subject: 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@ --- sys/kern/spec_vnops.c | 4 +--- sys/miscfs/specfs/spec_vnops.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'sys') 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)); -- cgit v1.2.3