• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Query related to lookup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Query related to lookup


  • Subject: RE: Query related to lookup
  • From: Pratima Kudale <email@hidden>
  • Date: Thu, 28 Mar 2013 16:44:00 -0700
  • Acceptlanguage: en-US
  • Thread-topic: Query related to lookup

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

{

  stat(path, &st);

  sleep(2 secs);

}

 

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?

 

Thanks,

Pratima

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Query related to lookup (From: Pratima Kudale <email@hidden>)

  • Prev by Date: Query related to lookup
  • Next by Date: Re: Query related to lookup
  • Previous by thread: Query related to lookup
  • Next by thread: Re: Query related to lookup
  • Index(es):
    • Date
    • Thread