Re: Add nc_timeout to struct namecache?

2012-03-22 Thread Emmanuel Dreyfus
David Holland wrote: > What does NFS do? It uses a TTL in struct nfsnode and calls cache_purge1 when cache_lookup returns an expired node. -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz m...@netbsd.org

Re: Add nc_timeout to struct namecache?

2012-03-22 Thread David Holland
On Thu, Mar 22, 2012 at 08:37:39AM +, Emmanuel Dreyfus wrote: > In order to handle FUSE lookups TTL, I need to somehow keep track of > a node cache expiry date. I can do that in struct puffs_node, but that > mean I will lookup the cache, check expiry and decide to not use > cached entry if

Add nc_timeout to struct namecache?

2012-03-22 Thread Emmanuel Dreyfus
Hi In order to handle FUSE lookups TTL, I need to somehow keep track of a node cache expiry date. I can do that in struct puffs_node, but that mean I will lookup the cache, check expiry and decide to not use cached entry if it is expired. In that case the entry remains in name cache, and is even b