[OpenAFS-devel] oops with 2.6.24.4 and openafs-1.4.7-pre4 reading 0 sized file

Chas Williams (CONTRACTOR) chas@cmf.nrl.navy.mil
Thu, 24 Apr 2008 10:35:31 -0400


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.