From: Chaskiel M Grundman Date: Sat, 13 Jul 2002 04:28:28 +0000 (+0000) Subject: freebsd-chunk-corruption-fix-20020713 X-Git-Tag: openafs-devel_1_3_3~70 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=affdbe8db375bf2b9defe05ca4431f5b4e14221e;p=packages%2Fo%2Fopenafs.git freebsd-chunk-corruption-fix-20020713 This patch will fix the "freebsd can't read files > 1 chunk" problem. It will almost certainly not fix the "cache files get the bootloader written into them" problem, but there is a miniscule chance: --- diff --git a/src/afs/VNOPS/afs_vnop_read.c b/src/afs/VNOPS/afs_vnop_read.c index 886d08146..bbbe2f3a2 100644 --- a/src/afs/VNOPS/afs_vnop_read.c +++ b/src/afs/VNOPS/afs_vnop_read.c @@ -937,7 +937,7 @@ tagain: #if defined(AFS_FBSD_ENV) AFS_GUNLOCK(); VOP_LOCK(tfile->vnode, LK_EXCLUSIVE, curproc); - code = VOP_READ(tfile->vnode, auio, 0, &afs_osi_cred); + code = VOP_READ(tfile->vnode, &tuio, 0, &afs_osi_cred); VOP_UNLOCK(tfile->vnode, 0, curproc); AFS_GLOCK(); #else