]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitd026373fcd9b1447257189b04b5bba71bbd75c39
tree84353b34bb5ea02df98b598fff037cf1da20d6b0
parentb020822e066b40ce6442cede961c239da11d8422
[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