Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/mt Print the current file and block numbers now that at ...



details:   https://anonhg.NetBSD.org/src/rev/65d50a17a36b
branches:  trunk
changeset: 476132:65d50a17a36b
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Sep 07 13:56:53 1999 +0000

description:
Print the current file and block numbers now that at least one tape
driver returns usable values for these.

diffstat:

 bin/mt/mt.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 413e9fd37011 -r 65d50a17a36b bin/mt/mt.c
--- a/bin/mt/mt.c       Tue Sep 07 13:55:27 1999 +0000
+++ b/bin/mt/mt.c       Tue Sep 07 13:56:53 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mt.c,v 1.31 1999/07/21 17:10:08 tron Exp $     */
+/*     $NetBSD: mt.c,v 1.32 1999/09/07 13:56:53 simonb Exp $   */
 
 /*
  * Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)mt.c       8.2 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: mt.c,v 1.31 1999/07/21 17:10:08 tron Exp $");
+__RCSID("$NetBSD: mt.c,v 1.32 1999/09/07 13:56:53 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -274,6 +274,8 @@
        (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("current file number: %d\n", bp->mt_fileno);
+       (void)printf("current block number: %d\n", bp->mt_blkno);
 }
 
 /*



Home | Main Index | Thread Index | Old Index