Date: Sun, 29 Aug 2010 18:28:00 -0400 (EDT) From: Benjamin Kaduk <kaduk@MIT.EDU> To: Kostik Belousov <kostikbel@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: memory inconsistencies with OpenAFS on FreeBSD Message-ID: <alpine.GSO.1.10.1008291616190.9337@multics.mit.edu> In-Reply-To: <20100828082453.GG2396@deviant.kiev.zoral.com.ua> References: <alpine.GSO.1.10.1008272351061.9337@multics.mit.edu> <20100828082453.GG2396@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 28 Aug 2010, Kostik Belousov wrote: > On Sat, Aug 28, 2010 at 12:28:51AM -0400, Benjamin Kaduk wrote: >> >> I also don't seem to be able to run executables from AFS: >> freebuild# ./my_mmap test4 >> elf_load_section: truncated ELF file >> Abort > This sounds very much as missed vnode_pager_setsize() calls. > VM tracks the file size as vnode vmobject size separately. > I think this was done for historical reasons, but also it > allows to not traverse the vop stack calling VOP_GETATTR each > time when size is needed. Yes, that looks to have done the trick -- thanks to Matt Benjamin for doing the legwork to find all the places it was needed. With that fix and a small locking patch, my buildworld now finishes. Thanks! -Ben
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.GSO.1.10.1008291616190.9337>