[OpenAFS-devel] Linux 2.6.12 kernel BUG at fs/namei.c:1189
chas williams - CONTRACTOR
chas@cmf.nrl.navy.mil
Thu, 19 Jan 2006 08:08:06 -0500
In message <20060119.132727.09767689.haba@habarber.pdc.kth.se>,Harald Barth writes:
>Can you write a script for me that makes this go "BUG"? I'd put that into
>the Arla test suite right away (and we'd know how a machine with Arla reacts
>on this).
this worked for me to test the problem:
vos create myserver mypart new.vol
mkdir a
cd a
fs mkm b new.vol
ls -ld b
cd ..
mkdir c
cd c
fs mkm d new.vol
ls -ld d
mv d e
so initially, the dcache learns that a is the parent of b (new.vol).
however, you then create directory c and mount new.vol as d. who is the
parent of d? technically, its c, but afs has learned that new.vol is
b who has a parent of a. when rename checks the parent of d against
the current directroy, its gets some confusing information, and BUG.