OpenAFS CVS Commit: openafs/src/libadmin/client by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Wed, 03 Oct 2007 11:27:57 EDT


Update of /cvs/openafs/src/libadmin/client
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/libadmin/client

Modified Files:
	afs_clientAdmin.c 
Log Message:
DELTA libadmin-minimize-dns-lookups-20071003
AUTHOR jaltman@secure-endpoints.com

Some cells have a large number of servers listed in the vldb that 
no longer exist and/or do not have PTR records in DNS.  The algorithm
used to obtain the "server names" from IP addresses involves opening
a cell handle, creating an iterator of all servers, and then iterating 
over them until a match is found for the IP address.  This is done for
every server reference.  Each time the iterator was constructed the 
vldb would be queried and gethostbyaddr() would be called on every listed
ip address.

This patch stores a copy of the server list in the cell handle along with
an expiration time generated from a 10 minute TTL.  This significant 
reduces but does not eliminate the number of times that the caller is
blocked on reverse dns lookups.
 


--- DELTA config follows ---
libadmin-minimize-dns-lookups-20071003 openafs/src/libadmin/client/afs_clientAdmin.c 1.12 1.13