Re: [PATCH 30/32] NFS: Add a dns resolver for use with NFSv4 referrals and migration

Jeff Layton
2009-08-21T13:43:19Z

On Wed, 19 Aug 2009 19:38:53 -0400
Trond Myklebust <Trond.Myklebust@netapp.com> wrote:

> The NFSv4 and NFSv4.1 protocols both allow for the redirection of a client
> from one server to another in order to support filesystem migration and
> replication. For full protocol support, we need to add the ability to
> convert a DNS host name into an IP address that we can feed to the RPC
> client.
>
> We'll reuse the sunrpc cache, now that it has been converted to work with
> rpc_pipefs.
>
> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

I'm happy to see this problem get resolved. Much of this functionality
however is already provided by the keys API. While it's more geared
toward dealing with auth tokens, it's still a fairly decent generic upcall
implementation and could easily have been used here with a lot less new
code added. Why did you decide to roll your own implementation instead?

--
Jeff Layton <jlayton@redhat.com>