mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Print out resid portion of MTIOCGET returned data.
This commit is contained in:
parent
4eb83b01b8
commit
c310386321
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71311
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user