[OpenAFS] handling of VFiles in 1.3.74 and linux 2.6.x

Thomas Mueller thomas.mueller@hrz.tu-chemnitz.de
Tue, 30 Nov 2004 16:35:49 +0100 (MET)


Hi,

I wonder if someone could confirm this phenomenon:

Environment:
OpenAFS 1.3.74
Fedora Core 3 (Kernel 2.6.9-1.667) on a ia32 machine
cache directory within a separate partition (ext3)

The problem is:
The VFiles in the cache directory are not correctly truncated.

This is the szenario:
One VFile within the cache directory (e.g. <cachedir>/D*/V*) holds
a whole chunk (e.g. 65536 byte) and therefore occupies 68 1K blocks (ls -ls):

68 -rw-------  1 root root 65536 Nov 30 10:44 D0/V915

Later this VFile gets reassigned to another chunk, which
is smaller - but the number of assigned blocks doesn't change:

68 -rw-------  1 root root 315 Nov 30 10:45 D0/V915

The number of blocks should be 4 and not 68.

You could confirm this by looking for files within your cache directory, those
size is smaller than the chunksize and the number of blocks is
larger than expected.

I think this problem is rather specific to the 2.6.x kernel than to
Fedora Core 3.

see also:
http://rt.central.org/rt/Ticket/Display.html?id=15934

Thomas.