summaryrefslogtreecommitdiff
path: root/bin/mt
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-06-01 05:42:02 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-06-01 05:42:02 +0000
commitadf0a824da6d4e09e46e59ff7fddf80a6928c00e (patch)
tree2362e3e266957a297d20bef7cb2cfdf577b6a324 /bin/mt
parent2c614c2317802965476fd24c0aa1a301afa994f7 (diff)
We do not create st devices with different density modes. i.e. with device
minor numbers having bits 2 or 3 set. Eliminate the quirks, etc. used to store info on these non-existant modes. Also eliminate a couple of 'unimplemented' fields in the ioctl request structure. ok beck@ deraadt@
Diffstat (limited to 'bin/mt')
-rw-r--r--bin/mt/mt.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/bin/mt/mt.c b/bin/mt/mt.c
index ed557d785f2..a5a8c8e565c 100644
--- a/bin/mt/mt.c
+++ b/bin/mt/mt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mt.c,v 1.27 2006/05/27 22:37:03 beck Exp $ */
+/* $OpenBSD: mt.c,v 1.28 2006/06/01 05:42:01 krw Exp $ */
/* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: mt.c,v 1.27 2006/05/27 22:37:03 beck Exp $";
+static char rcsid[] = "$OpenBSD: mt.c,v 1.28 2006/06/01 05:42:01 krw Exp $";
#endif
#endif /* not lint */
@@ -249,12 +249,8 @@ status(struct mtget *bp)
printreg("ds", bp->mt_dsreg, mt->t_dsbits);
printreg("\ner", bp->mt_erreg, mt->t_erbits);
(void)putchar('\n');
- (void)printf("blocksize: %d (%d, %d, %d, %d)\n",
- bp->mt_blksiz, bp->mt_mblksiz[0], bp->mt_mblksiz[1],
- bp->mt_mblksiz[2], bp->mt_mblksiz[3]);
- (void)printf("density: %d (%d, %d, %d, %d)\n",
- bp->mt_density, bp->mt_mdensity[0], bp->mt_mdensity[1],
- bp->mt_mdensity[2], bp->mt_mdensity[3]);
+ (void)printf("blocksize: %d (%d)\n", bp->mt_blksiz, bp->mt_mblksiz);
+ (void)printf("density: %d (%d)\n", bp->mt_density, bp->mt_mdensity);
}
/*