[OpenAFS-devel] oops with 2.6.24.4 and openafs-1.4.7-pre4 reading 0 sized file
Troy Benjegerdes
hozer@hozed.org
Thu, 24 Apr 2008 09:41:14 -0500
On Thu, Apr 24, 2008 at 10:35:31AM -0400, Chas Williams (CONTRACTOR) wrote:
> In message <20080424030701.GG7685@excalibur.hozed.org>,Troy Benjegerdes writes:
> >It dies when I try to access a 0-size file in afs_MemRead, or uiomove.
> >The last working version I had on PPC was 1.4.3rc1, and I
> >have a working version of 1.4.5 on x86 as well.
> >
> >Should the call the uiomove/memcpy have a size of zero? Or would there
> >be some metadata that needs to get moved? Why do we even bother for
> >a zero sized file?
>
> i imagine it is trying to pad the block of memory with zeros.
That makes sense, and from what I can tell from tcpdump output, there
were several 'fetchStatus' calls, but no 'fetchData', so I'm wondering
if there is some optimization to avoid fetching a zero-sized file that
somehow broke memcache.