[OpenAFS] OpenAFS with Mac OS X

Jim Rees rees@umich.edu
Tue, 25 Sep 2001 12:31:29 -0400

(MacOS finder choking on /afs/...)

I think it would be nice to detect this situation and correct it in the
cache manager.  I think the desired behavior would be to detect when a
stat() is being done on an entry in /afs, and return either the current stat
data without verifying it, or completely fake stat data.  This whole thing
would be made optional via yet another 'fs' option.

The problem is that it would be a really ugly hack.  The vcache gets filled
in deep inside of afs_lookup() -> verifyVCache().  At that point you have no
idea whether the lookup is being done for a stat() or for some other
purpose.  You don't even know that it's being done on an entry in /afs.

I don't have a good solution, other than pounding on people who write stupid
finders/browsers.  But this isn't the first time this has come up (NeXT had
the same problem) and it won't be the last.