diff options
author | Matt Jacob <mjacob@FreeBSD.org> | 2001-01-21 01:33:31 +0000 |
---|---|---|
committer | Matt Jacob <mjacob@FreeBSD.org> | 2001-01-21 01:33:31 +0000 |
commit | c310386321d9e59fcc2694397e46e46d8a1e21b2 (patch) | |
tree | b250915e51d985aef6cd7167199b5f4ffbd528d6 /usr.bin/mt | |
parent | 4eb83b01b803c3951555b3bd7a06dfdb8cada070 (diff) | |
download | src-c310386321d9e59fcc2694397e46e46d8a1e21b2.tar.gz src-c310386321d9e59fcc2694397e46e46d8a1e21b2.zip |
Print out resid portion of MTIOCGET returned data.
Notes
Notes:
svn path=/head/; revision=71311
Diffstat (limited to 'usr.bin/mt')
-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 2939768cab97..ef1aaf5f5436 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 |