RE: Query related to lookup
RE: Query related to lookup
- Subject: RE: Query related to lookup
- From: Pratima Kudale <email@hidden>
- Date: Mon, 08 Apr 2013 13:14:11 -0700
- Acceptlanguage: en-US
- Thread-topic: Query related to lookup
Ken,
You are right, freebsd does not support ttl for name cache, I have seen it in linux kernl vfs layer.
About your comment:
>>Yeah, well ... I only report the news, not make it. I mean, if you want your lookup routine to be called every time, that's what you have to do.
By staring and experimenting in last few days: I saw that I could cause VFS to send me a lookup call for every stat() syscall, if I call below function for a mountpoint:
Vfs_setauthcache_ttl(mp, 0);
Above call is supposed to disable auth cache, I am still confused about why affects lookup behavior. If you know more details about it, please let me know.
Thanks,
Pratima
-----Original Message-----
From: Ken Hornstein [mailto:email@hidden]
Sent: Monday, April 08, 2013 1:03 PM
To: Pratima Kudale
Cc: Pratima Kudale; email@hidden
Subject: Re: Query related to lookup
>>>So, in summary:
>>>
>>>- Use VFS_CANTCACHE
>>>- Don't call cache_enter().
>
>Which means implement your own name cache ...
Yeah, well ... I only report the news, not make it. I mean, if you want your lookup routine to be called every time, that's what you have to do.
>I wanted to solve
>this problem using OSx built-in name cache. We also have directory
>notification callback mechanism where we can call cache_purge(). But I
>wanted to raise/verify my concern on whether or not VFS layer from OSx
>kernel supports "time-to-live" for a vnode like linux / freeebsd dentry.
Errr ... is there a TTL for FreeBSD vnodes? That's news to me, but hey, sounds interesting. Where is that code at, anyway? A very quick perusal of the FreeBSD sources didn't show that, but it's totally easy for me to have missed it.
--Ken
_______________________________________________
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