macos avoid dotunderbar lookups in fakestat mode
authorDerrick Brashear <shadow@dementia.org>
Mon, 7 Dec 2009 04:44:53 +0000 (23:44 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 8 Dec 2009 12:34:15 +0000 (04:34 -0800)
cocoa tries to lookup ._ files for every object, possibly generating
AFSDB queries and other fun. avoid them

Change-Id: Id70b6335d4dddcb6d5628a9883b2c81193bb39d7
Reviewed-on: http://gerrit.openafs.org/896
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/afs/VNOPS/afs_vnop_lookup.c

index 4691417..a506960 100644 (file)
@@ -1243,6 +1243,8 @@ afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, afs_ucred_t *acr
            tryEvalOnly = 1;
        if (strcmp(aname, "Contents") == 0)
            tryEvalOnly = 1;
+       if (strncmp(aname, "._", 2) == 0)
+           tryEvalOnly = 1;
     }
 #endif