Adjust totread argument passed to cluster_read() to account for offset not
being block aligned.
This commit is contained in:
parent
96ca84d197
commit
4e0cd00988
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user