Adjust totread argument passed to cluster_read() to account for offset not

being block aligned.
This commit is contained in:
Tor Egge 2005-10-09 21:11:25 +00:00
parent 96ca84d197
commit 4e0cd00988

View File

@ -454,7 +454,7 @@ ffs_read(ap)
* doing sequential access.
*/
error = cluster_read(vp, ip->i_size, lbn,
size, NOCRED, uio->uio_resid, seqcount, &bp);
size, NOCRED, blkoffset + uio->uio_resid, seqcount, &bp);
} else if (seqcount > 1) {
/*
* If we are NOT allowed to cluster, then