In message <1192801277.7073.4.camel@heimdal.trondhjem.org>, Trond Myklebust writes:
Trond, I was able to narrow down the problem w/o using unionfs at all (yay!
:-). All I do is setup a loop device, mkfs it as ext2, mount it, then
export it to localhost and mount it locally as nfs2. I go and touch a new
file in the ext2 directory. Then I readdir the export point to find the new
file indeed. Then I stat(1) the new file, and get the appropriate stat
output. Now the strange thing is that right after the stat through the
export point, the file DISAPPEARS from the lower ext2 dir, but REAPPEARS a
few seconds later.
It doesn't happen all the time, so it feels like some sort of a race or
timing-related bug. And it only happens w/ nfs2 on 2.6.24 (v3/4 work fine;
v2/3/4 work find in previous kernels).
I'm trying to get a script that'll be able to reproduce this for you more
deterministically.
BTW, does your just-posted set of patches, subject "[GIT] NFS client fixes
for 2.6.23++" possibly fix this? I can try it and let you know.
Hope this helps for now.
Erez.
-