From 9a5e3ddb2d8ec92a3e032c9a749ac296ea5861df Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Thu, 12 Sep 2002 20:53:50 +0000 Subject: Pass the physical instead of the logical block number in bp->bio_pblkno. Otherwise, all formats not using 512 byte physical sectors got screwed. --- sys/dev/fdc/fdc.c | 2 +- sys/isa/fd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 5edc407b337f..68786b6dc508 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -1725,7 +1725,7 @@ fdstrategy(struct bio *bp) } bp->bio_bcount = (nblocks - blknum) * fdblk; } - bp->bio_pblkno = bp->bio_blkno; + bp->bio_pblkno = blknum; s = splbio(); bioqdisksort(&fdc->head, bp); untimeout(fd_turnoff, fd, fd->toffhandle); /* a good idea */ diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 5edc407b337f..68786b6dc508 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -1725,7 +1725,7 @@ fdstrategy(struct bio *bp) } bp->bio_bcount = (nblocks - blknum) * fdblk; } - bp->bio_pblkno = bp->bio_blkno; + bp->bio_pblkno = blknum; s = splbio(); bioqdisksort(&fdc->head, bp); untimeout(fd_turnoff, fd, fd->toffhandle); /* a good idea */ -- cgit v1.3