[OpenAFS] Re: OpenAFS 1.4.2fc2 and Vanilla Linux kernel 2.6.18
Marc Dionne
dionne@cs.wisc.edu
Fri, 13 Oct 2006 08:29:40 -0400 (EDT)
> At least in my case, the problem is the reported block *size*, which
> comes back as 2^64 - 1 -- so while I also get absurd numbers, they're
> at least absurdly high rather than absurdly low:
Does this kernel have i_blksize in struct inode?
afs_osi_Stat() has this recent patch to deal with the missing i_blksize:
#ifdef STRUCT_INODE_HAS_I_BLKSIZE
astat->blksize = OSIFILE_INODE(afile)->i_blksize;
#endif
... so perhaps astat->blksize is never initialized? The kernel code
itself seems to use "(1 << inode->i_blkbits)" as a replacement for
inode->i_blksize in fs/stat.c
Marc