mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
STABLE14-cached-lookup-mtpt-20060120
FIXES 25647 don't do lookups on the wrong vnode, if it's a mvstat=1 vnode, it's not useful (cherry picked from commit a784c131709a8252fa1e8cb4ce49cb0c655dd7aa)
This commit is contained in:
parent
ef9d3c9292
commit
4618020dbc
@ -299,11 +299,14 @@ afs_vop_lookup(ap)
|
||||
int wantparent; /* 1 => wantparent or lockparent flag */
|
||||
struct proc *p;
|
||||
#ifdef AFS_DARWIN80_ENV
|
||||
error = cache_lookup(ap->a_dvp, ap->a_vpp, ap->a_cnp);
|
||||
if (error == -1)
|
||||
return 0;
|
||||
if (error == ENOENT)
|
||||
return error;
|
||||
vcp = VTOAFS(ap->a_dvp);
|
||||
if (vcp->mvstat != 1) {
|
||||
error = cache_lookup(ap->a_dvp, ap->a_vpp, ap->a_cnp);
|
||||
if (error == -1)
|
||||
return 0;
|
||||
if (error == ENOENT)
|
||||
return error;
|
||||
}
|
||||
#endif
|
||||
|
||||
GETNAME();
|
||||
|
Loading…
x
Reference in New Issue
Block a user