summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-01-22 21:20:14 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-01-22 21:20:14 +0000
commit3b1180e14df5d68126b40a84cd067f3b2327a0f8 (patch)
tree67f1ea046920f5e8f4247b9ed4c8cdce46cbb3b7 /bin
parentc5f32d8024586c6878a852032548f0fa54cef070 (diff)
Add file # and block # to the information "mt status" shows.
diff from Oscar Endre Edvardsen via misc@ a long time ago. ok sthen@ dlg@
Diffstat (limited to 'bin')
-rw-r--r--bin/mt/mt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/mt/mt.c b/bin/mt/mt.c
index 34065ff17f1..2d60d2cc31e 100644
--- a/bin/mt/mt.c
+++ b/bin/mt/mt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mt.c,v 1.39 2018/07/09 19:38:29 deraadt Exp $ */
+/* $OpenBSD: mt.c,v 1.40 2019/01/22 21:20:13 krw Exp $ */
/* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */
/*
@@ -281,6 +281,8 @@ status(struct mtget *bp)
(void)putchar('\n');
(void)printf("blocksize: %d (%d)\n", bp->mt_blksiz, bp->mt_mblksiz);
(void)printf("density: %d (%d)\n", bp->mt_density, bp->mt_mdensity);
+ (void)printf("current file number: %d\n", bp->mt_fileno);
+ (void)printf("current block number: %d\n", bp->mt_blkno);
}
/*