source: server/common/patches/openafs-jhutz.patch @ 840

Last change on this file since 840 was 840, checked in by andersk, 14 years ago
Revert STABLE14-linux-fakestat-avoid-mtpt-fillin-issue-20080415 in an effort to fix the getcwd() ENOENT problem. (This has already been running on b-m for about a month.)
  • Property svn:executable set to *
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
     
    2222#include "afs/param.h"
    2323
    2424RCSID
    25     ("$Header: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.81.2.64 2008/04/15 12:29:54 shadow Exp $");
     25    ("$Header: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v 1.81.2.63 2008/04/02 18:27:13 shadow Exp $");
    2626
    2727#include "afs/sysincludes.h"
    2828#include "afsincludes.h"
     
    803803        if (vcp == afs_globalVp)
    804804            goto good_dentry;
    805805
    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 */
    814808
    815809#ifdef notdef
    816810        /* 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
     
    1818#include "afs/param.h"
    1919
    2020RCSID
    21     ("$Header: /cvs/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v 1.50.2.21 2008/04/15 12:29:56 shadow 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 $");
    2222
    2323#include "afs/sysincludes.h"    /* Standard vendor system headers */
    2424#include "afsincludes.h"        /* Afs-based standard headers */
     
    11201120    register afs_int32 code;
    11211121    register afs_int32 bulkcode = 0;
    11221122    int pass = 0, hit = 0;
    1123     int force_eval = afs_fakestat_enable ? 0 : 1;
    11241123    long dirCookie;
    11251124    extern afs_int32 afs_mariner;       /*Writing activity to log? */
    11261125    afs_hyper_t versionNo;
     
    14431442    }                           /* sub-block just to reduce stack usage */
    14441443
    14451444    if (tvc) {
     1445        int force_eval = afs_fakestat_enable ? 0 : 1;
     1446
    14461447        if (adp->states & CForeign)
    14471448            tvc->states |= CForeign;
    14481449        tvc->parentVnode = adp->fid.Fid.Vnode;
     
    14631464                force_eval = 1;
    14641465            ReleaseReadLock(&tvc->lock);
    14651466        }
    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 
    14691467#if defined(UKERNEL) && defined(AFS_WEB_ENHANCEMENTS)
    14701468        if (!(flags & AFS_LOOKUP_NOEVAL))
    14711469            /* don't eval mount points */
     
    15911589             * rather than the vc of the mount point itself.  we can still find the
    15921590             * mount point's vc in the vcache by its fid. */
    15931591#endif /* UKERNEL && AFS_WEB_ENHANCEMENTS */
    1594             if (!hit && force_eval) {
     1592            if (!hit) {
    15951593                osi_dnlc_enter(adp, aname, tvc, &versionNo);
    15961594            } else {
    15971595#ifdef AFS_LINUX20_ENV
Note: See TracBrowser for help on using the repository browser.