On Tue, 2005-07-19 at 20:34 +0800, Ian Kent wrote:
> I think I'm missing something?
> How do you get proximity information from the 'addr=' address?
> 
> Ian
> 

Ahh sorry if that wasn't clear. We don't. We resolve the addresses for
each replicated mount host (using gethostbyname) and then compare those
addresses to the routing table in /proc/net/route to determine whether
the mount is on the same subnet as the client.

When we're ready to mount, we would pass the addr= option to the mount
command to hint to it that it should use this address instead of the
first one in the list.

-- 
Jeff Layton <[EMAIL PROTECTED]>

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to