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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Derrick Brashear 2012-04-22 22:45:09 -04:00
parent 7e7a4ff328
commit be1f110f3e

View 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))