From bf4479ad5f9a17b30bc4b21857a80107b1e7ee3b Mon Sep 17 00:00:00 2001 From: tegge Date: Sun, 9 Oct 2005 21:11:25 +0000 Subject: Adjust totread argument passed to cluster_read() to account for offset not being block aligned. --- sys/ufs/ffs/ffs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/ufs') 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 -- cgit v1.1