[PATCH] knfsd: allow sockets to be passed to nfsd via 'portlist'
Userspace should create and bind a socket (but not connectted) and write the 'fd' to portlist. This will cause the nfs server to listen on that socket. To close a socket, the name of the socket - as read from 'portlist' can be written to 'portlist' with a preceding '-'. Signed-off-by:Neil Brown <neilb@suse.de> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- fs/nfsd/nfsctl.c 50 additions, 9 deletionsfs/nfsd/nfsctl.c
- fs/nfsd/nfssvc.c 1 addition, 3 deletionsfs/nfsd/nfssvc.c
- include/linux/nfsd/nfsd.h 1 addition, 0 deletionsinclude/linux/nfsd/nfsd.h
- include/linux/sunrpc/svcsock.h 5 additions, 1 deletioninclude/linux/sunrpc/svcsock.h
- net/sunrpc/svcsock.c 45 additions, 4 deletionsnet/sunrpc/svcsock.c
Loading
Please register or sign in to comment