[OpenAFS-devel] ESTALE problem with linux 2.4.19-pre7 (fwd)
Kevin Coffman
kwc@citi.umich.edu
Wed, 01 May 2002 15:52:54 -0400
Here is a patch to fix the reported problem. This is against version
1.2.3.
*** osi_vnodeops.c.orig Sun Jan 20 04:01:51 2002
--- osi_vnodeops.c Wed May 1 15:32:54 2002
***************
*** 710,719 ****
--- 710,728 ----
AFS_GLOCK();
+ /* Don't try the free at the end if we jump out early */
+ sysState.allocked = 0;
+
/* If it's a negative dentry, then there's nothing to do. */
if (!vcp || !parentvcp)
goto done;
+ /* If it is the AFS root, then there's no chance it needs
revalidating */
+ if (vcp == afs_globalVp) {
+ bad_dentry = 0;
+ goto done;
+ }
+
if (code = afs_InitReq(&treq, credp))
goto done;
------- Forwarded Message
To: openafs-devel@openafs.org
Subject: Re: [OpenAFS-devel] ESTALE problem with linux 2.4.19-pre7
From: Kevin Coffman <kwc@citi.umich.edu>
Date: Tue, 30 Apr 2002 17:20:28 -0400
I should add that this only seems to be a problem in the root of
root.afs. My real problem is that I'm trying to create the RW
mountpoint for my root.cell volume, but it fails with ESTALE. I can
create the RW mountpoint elsewhere, just not in /afs.
Any suggestions?
K.C.
> I'm bringing up a machine with Redhat 7.2 with the 2.4.19-pre7 kernel.
> (The newer kernel is needed for network device support.) I've got
> version 1.2.3 of OpenAFS built from source.
>
> I'm creating a new cell. After creating root.afs and starting the
> client, if I do an "ls -al /afs" I get an error "ls: /afs/.: Stale NFS
> file handle". This seems to be due to some changes in the
> link_path_walk() routine in the kernel?
>
> Is this a known problem?
>
> Thanks,
> Kevin