Print out resid portion of MTIOCGET returned data.

This commit is contained in:
Matt Jacob 2001-01-21 01:33:31 +00:00
parent 4eb83b01b8
commit c310386321
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71311

View File

@ -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