macos: remove mistyped vnode warning
authorDerrick Brashear <shadow@dementix.org>
Mon, 23 Apr 2012 02:45:09 +0000 (22:45 -0400)
committerDerrick Brashear <shadow@dementix.org>
Mon, 23 Apr 2012 12:23:53 +0000 (05:23 -0700)
newborn vnodes are corrected if needed; don't worry about it.

Change-Id: I3bc4d6e9a467a8e09a3a77e027254f0da1448f80
Reviewed-on: http://gerrit.openafs.org/7270
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>

src/afs/afs_vcache.c

index 8a92b99..5f6c9b1 100644 (file)
@@ -1455,9 +1455,6 @@ afs_ProcessFS(struct vcache *avc,
              struct AFSFetchStatus *astat, struct vrequest *areq)
 {
     afs_size_t length;
-#ifdef AFS_DARWIN80_ENV
-    int fixup = 0;
-#endif
     AFS_STATCNT(afs_ProcessFS);
 
 #ifdef AFS_64BIT_CLIENT
@@ -1492,32 +1489,16 @@ afs_ProcessFS(struct vcache *avc,
     avc->f.m.Group = astat->Group;
     avc->f.m.LinkCount = astat->LinkCount;
     if (astat->FileType == File) {
-#ifdef AFS_DARWIN80_ENV
-       if (avc->f.m.Type != VREG)
-           fixup = 1;
-#endif
        vSetType(avc, VREG);
        avc->f.m.Mode |= S_IFREG;
     } else if (astat->FileType == Directory) {
-#ifdef AFS_DARWIN80_ENV
-       if (avc->f.m.Type != VDIR)
-           fixup = 1;
-#endif
        vSetType(avc, VDIR);
        avc->f.m.Mode |= S_IFDIR;
     } else if (astat->FileType == SymbolicLink) {
        if (afs_fakestat_enable && (avc->f.m.Mode & 0111) == 0) {
-#ifdef AFS_DARWIN80_ENV
-           if (avc->f.m.Type != VDIR)
-               fixup = 1;
-#endif
            vSetType(avc, VDIR);
            avc->f.m.Mode |= S_IFDIR;
        } else {
-#ifdef AFS_DARWIN80_ENV
-           if (avc->f.m.Type != VLNK)
-               fixup = 1;
-#endif
            vSetType(avc, VLNK);
            avc->f.m.Mode |= S_IFLNK;
        }
@@ -1525,10 +1506,6 @@ afs_ProcessFS(struct vcache *avc,
            avc->mvstat = 1;
        }
     }
-#ifdef AFS_DARWIN80_ENV
-    if (fixup)
-       printf("found mistyped vnode!\n");
-#endif
     avc->f.anyAccess = astat->AnonymousAccess;
 #ifdef badidea
     if ((astat->CallerAccess & ~astat->AnonymousAccess))