Report bio_pblkbo instead of bio_blkno.
This commit is contained in:
parent
24730dd78a
commit
1ad9172f6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121210
@ -45,7 +45,7 @@ disk_err(struct bio *bp, const char *what, int blkdone, int nl)
|
||||
case BIO_GETATTR: printf("cmd=getattr "); break;
|
||||
default: printf("cmd=%x ", bp->bio_cmd); break;
|
||||
}
|
||||
sn = bp->bio_blkno;
|
||||
sn = bp->bio_pblkno;
|
||||
if (bp->bio_bcount <= DEV_BSIZE) {
|
||||
printf("fsbn %jd%s", (intmax_t)sn, nl ? "\n" : "");
|
||||
return;
|
||||
@ -54,8 +54,8 @@ disk_err(struct bio *bp, const char *what, int blkdone, int nl)
|
||||
sn += blkdone;
|
||||
printf("fsbn %jd of ", (intmax_t)sn);
|
||||
}
|
||||
printf("%jd-%jd", (intmax_t)bp->bio_blkno,
|
||||
(intmax_t)(bp->bio_blkno + (bp->bio_bcount - 1) / DEV_BSIZE));
|
||||
printf("%jd-%jd", (intmax_t)bp->bio_pblkno,
|
||||
(intmax_t)(bp->bio_pblkno + (bp->bio_bcount - 1) / DEV_BSIZE));
|
||||
if (nl)
|
||||
printf("\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user