summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2005-10-09 21:11:25 +0000
committertegge <tegge@FreeBSD.org>2005-10-09 21:11:25 +0000
commitbf4479ad5f9a17b30bc4b21857a80107b1e7ee3b (patch)
treef5ae05b5db766fde42636ac0a50da929f6255a36 /sys
parent60fb64c30e9b2c543b4e89c17d7ee8d4570e9dcc (diff)
downloadFreeBSD-src-bf4479ad5f9a17b30bc4b21857a80107b1e7ee3b.zip
FreeBSD-src-bf4479ad5f9a17b30bc4b21857a80107b1e7ee3b.tar.gz
Adjust totread argument passed to cluster_read() to account for offset not
being block aligned.
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index c7808f0..e631db6 100644
--- a/sys/ufs/ffs/ffs_vnops.c
+++ b/sys/ufs/ffs/ffs_vnops.c
@@ -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
OpenPOWER on IntegriCloud