From be1f110f3efb41a72278c7abc8a22cbfcfa8d0e3 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sun, 22 Apr 2012 22:45:09 -0400 Subject: [PATCH] macos: remove mistyped vnode warning newborn vnodes are corrected if needed; don't worry about it. Change-Id: I3bc4d6e9a467a8e09a3a77e027254f0da1448f80 Reviewed-on: http://gerrit.openafs.org/7270 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_vcache.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 8a92b99952..5f6c9b1859 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -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))