diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mt/mt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mt/mt.c b/usr.bin/mt/mt.c index 2939768..ef1aaf5 100644 --- a/usr.bin/mt/mt.c +++ b/usr.bin/mt/mt.c @@ -709,11 +709,12 @@ st_status(struct mtget *bp) break; } } - if (bp->mt_fileno == (daddr_t) -1 || bp->mt_blkno == (daddr_t) -1) + if (bp->mt_resid == 0 && bp->mt_fileno == (daddr_t) -1 && + bp->mt_blkno == (daddr_t) -1) return; printf("---------------------------------\n"); - printf("File Number: %ld\tRecord Number: %ld\n", bp->mt_fileno, - bp->mt_blkno); + printf("File Number: %ld\tRecord Number: %ld\tResidual Count %d\n", + bp->mt_fileno, bp->mt_blkno, bp->mt_resid); } void |