[PATCH] knfsd: SUNRPC: allow creating an RPC service without registering with portmapper
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Feb 2007 08:53:29 +0000 (00:53 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:35 +0000 (09:48 -0800)
commit482fb94e1b0c2efe8258334aa2a68d4f4a91de9c
tree84353b34bb5ea02df98b598fff037cf1da20d6b0
parent6b174337e5126de834a971d3edc3681bbfa45e2c
[PATCH] knfsd: SUNRPC: allow creating an RPC service without registering with portmapper

Sometimes we need to create an RPC service but not register it with the local
portmapper.  NFSv4 delegation callback, for example.

Change the svc_makesock() API to allow optionally creating temporary or
permanent sockets, optionally registering with the local portmapper, and make
it return the ephemeral port of the new socket.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/lockd/svc.c
fs/nfs/callback.c
fs/nfsd/nfssvc.c
include/linux/sunrpc/svcsock.h
net/sunrpc/svcsock.c