diff options
author | joerg <joerg@FreeBSD.org> | 2002-09-12 20:53:50 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2002-09-12 20:53:50 +0000 |
commit | f45523b4d077ce0cfd4d8cc8f9b11fb6c58da2d5 (patch) | |
tree | 9c999691ff2c817f020ea37345149f950a2ca24e /sys/isa | |
parent | 1d629df1423c64eb1569e98b6b2c2c3e6fbcc802 (diff) | |
download | FreeBSD-src-f45523b4d077ce0cfd4d8cc8f9b11fb6c58da2d5.zip FreeBSD-src-f45523b4d077ce0cfd4d8cc8f9b11fb6c58da2d5.tar.gz |
Pass the physical instead of the logical block number in
bp->bio_pblkno. Otherwise, all formats not using 512 byte
physical sectors got screwed.
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/fd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |