From f45523b4d077ce0cfd4d8cc8f9b11fb6c58da2d5 Mon Sep 17 00:00:00 2001 From: joerg 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(-) (limited to 'sys') diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 5edc407..68786b6 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 5edc407..68786b6 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.1