summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-18 17:27:10 +0000
committerphk <phk@FreeBSD.org>2003-10-18 17:27:10 +0000
commitadc5cdd07a911fb9a3ac89c2b943b938c6e8fa13 (patch)
tree428b212e81fd434571ca69184845abca7c21b6dc /sys/kern/subr_disk.c
parent94a1f5bcd66a1aa3ed05708e4f3e5ae97aa6069e (diff)
downloadFreeBSD-src-adc5cdd07a911fb9a3ac89c2b943b938c6e8fa13.zip
FreeBSD-src-adc5cdd07a911fb9a3ac89c2b943b938c6e8fa13.tar.gz
Report bio_pblkbo instead of bio_blkno.
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 5737d84..9756ca6 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -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");
}
OpenPOWER on IntegriCloud