source:
server/common/patches/openafs-jhutz.patch
@
846
Last change on this file since 846 was 840, checked in by andersk, 16 years ago | |
---|---|
|
|
File size: 3.2 KB |
-
openafs/src/afs/LINUX/osi_vnodeops.c
RCS file: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v retrieving revision 1.81.2.64 retrieving revision 1.81.2.63 diff -u -r1.81.2.64 -r1.81.2.63
22 22 #include "afs/param.h" 23 23 24 24 RCSID 25 ("$Header: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.81.2.6 4 2008/04/15 12:29:54shadow Exp $");25 ("$Header: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.81.2.63 2008/04/02 18:27:13 shadow Exp $"); 26 26 27 27 #include "afs/sysincludes.h" 28 28 #include "afsincludes.h" … … 803 803 if (vcp == afs_globalVp) 804 804 goto good_dentry; 805 805 806 if (vcp->mvstat == 1) { /* mount point */ 807 if (vcp->mvid && (vcp->states & CMValid)) { 808 /* a mount point, not yet replaced by its directory */ 809 goto bad_dentry; 810 } 811 } else 812 if (*dp->d_name.name != '/' && vcp->mvstat == 2) /* root vnode */ 813 check_bad_parent(dp); /* check and correct mvid */ 806 if (*dp->d_name.name != '/' && vcp->mvstat == 2) /* root vnode */ 807 check_bad_parent(dp); /* check and correct mvid */ 814 808 815 809 #ifdef notdef 816 810 /* If the last looker changes, we should make sure the current -
openafs/src/afs/VNOPS/afs_vnop_lookup.c
RCS file: /cvs/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v retrieving revision 1.50.2.21 retrieving revision 1.50.2.20 diff -u -r1.50.2.21 -r1.50.2.20
18 18 #include "afs/param.h" 19 19 20 20 RCSID 21 ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v 1.50.2.2 1 2008/04/15 12:29:56shadow Exp $");21 ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v 1.50.2.20 2008/03/07 17:34:08 shadow Exp $"); 22 22 23 23 #include "afs/sysincludes.h" /* Standard vendor system headers */ 24 24 #include "afsincludes.h" /* Afs-based standard headers */ … … 1120 1120 register afs_int32 code; 1121 1121 register afs_int32 bulkcode = 0; 1122 1122 int pass = 0, hit = 0; 1123 int force_eval = afs_fakestat_enable ? 0 : 1;1124 1123 long dirCookie; 1125 1124 extern afs_int32 afs_mariner; /*Writing activity to log? */ 1126 1125 afs_hyper_t versionNo; … … 1443 1442 } /* sub-block just to reduce stack usage */ 1444 1443 1445 1444 if (tvc) { 1445 int force_eval = afs_fakestat_enable ? 0 : 1; 1446 1446 1447 if (adp->states & CForeign) 1447 1448 tvc->states |= CForeign; 1448 1449 tvc->parentVnode = adp->fid.Fid.Vnode; … … 1463 1464 force_eval = 1; 1464 1465 ReleaseReadLock(&tvc->lock); 1465 1466 } 1466 if (tvc->mvstat == 1 && (tvc->states & CMValid) && tvc->mvid != NULL)1467 force_eval = 1; /* This is now almost for free, get it correct */1468 1469 1467 #if defined(UKERNEL) && defined(AFS_WEB_ENHANCEMENTS) 1470 1468 if (!(flags & AFS_LOOKUP_NOEVAL)) 1471 1469 /* don't eval mount points */ … … 1591 1589 * rather than the vc of the mount point itself. we can still find the 1592 1590 * mount point's vc in the vcache by its fid. */ 1593 1591 #endif /* UKERNEL && AFS_WEB_ENHANCEMENTS */ 1594 if (!hit && force_eval) {1592 if (!hit) { 1595 1593 osi_dnlc_enter(adp, aname, tvc, &versionNo); 1596 1594 } else { 1597 1595 #ifdef AFS_LINUX20_ENV
Note: See TracBrowser
for help on using the repository browser.