Re: Stale NFS File Handle but !NFS

From: Parag Warudkar
Date: Wed Oct 29 2008 - 21:24:34 EST


On Wed, Oct 29, 2008 at 8:56 PM, Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Thu, 23 Oct 2008 17:58:34 -0400
> "Parag Warudkar" <parag.lkml@xxxxxxxxx> wrote:
>
>> Anyone got an idea why I am getting the below error with today's git
>> while compiling the kernel?
>>
>> LD arch/x86/vdso/built-in.o
>> scripts/Makefile.build:373: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
>> make[2]: stat: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
>> make[2]: *** No rule to make target `net/netfilter/.xt_mac.o.cmd'. Stop.
>> make[1]: *** [net/netfilter] Error 2
>> make: *** [net] Error 2
>> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ rm net/netfilter/.xt_mac.o.cmd
>> rm: cannot remove `net/netfilter/.xt_mac.o.cmd': Stale NFS file handle
>> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ sudo rm
>> net/netfilter/.xt_mac.o.cmd
>>
>> Even trying 'sudo rm -f' on that file gives the same error.
>>
>> I am not using NFS at all which makes this one sound weird!
>>
>
> Is this still happening?
>
> If so, I'd be looking at that new `return ERR_PTR(-ESTALE)' in
> d_obtain_alias().

To fix it I had to fsck.ext3 - which reported/corrected unused/deleted
inode errors relating to that file.
Since make -j4 was involved in this, sounds like a race some where?

Since then I have booted the same machine with latest git 4-5 times
and compiled a few kernels - nothing bad has happened till now.

Will continue to test newer kernels since I still have few days before
I load this machine with useful data.

Parag
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/