To receive lookup for every stat() I had to disable auth cache by calling:
Vfs_setauthcache_ttl(mp, 0);
Theoretically, I was thinking authentication caching controls ACLs and would avoid redundant VNOP_ACCESS calls.
But how does it controls name lookup? Is this a expected behavior?
Thanks,
Pratima
From: Pratima Kudale [mailto:email@hidden]
Sent: Thursday, March 28, 2013 1:33 PM
To: email@hidden
Cc: Pratima Kudale
Subject: Query related to lookup
I have test program which has below pseudo logic:
for(int i=0; i < 10; i++)
On linux above program generate lookup for 1st stat call and for remaining 9 stat() syscall dentry d_revalidate() functions gets called.
On mac osx, we receive lookup only once. Being a remote file system we would like to invalidate / revalidate name cache periodically.
Does darwin kernel provide anyway to invalidate name cache periodically?