diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2011-10-05 10:26:30 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-10 10:00:08 +0100 |
commit | ae6133572f317b4c7cb8046aa1b10bb83a2a58ba (patch) | |
tree | 88b77d361e1e83be9f917277f0cd179662ae311b /meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47 | |
parent | 639f138c3d2feff965e752cdb07c43bdfe415233 (diff) | |
download | poky-ae6133572f317b4c7cb8046aa1b10bb83a2a58ba.tar.gz |
Allow user mode NFS server to run without rpcbind / portmap
and nfsroot mount without the need to talk to an RPC info
server as long as the port numbers for mountd and nfsd
are known in advance.
This patch updates the qemu startup scripts and the
user mode NFS server to have the ability to start
without the need to use rpcbind or portmap services.
(From OE-Core rev: 3b1346c607c41a2d592c48594457c32153cb2314)
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47')
-rw-r--r-- | meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/023-no-rpc-register.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/023-no-rpc-register.patch b/meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/023-no-rpc-register.patch new file mode 100644 index 0000000000..50f23fcc6c --- /dev/null +++ b/meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/023-no-rpc-register.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Upstream-Status: Inappropriate [other] | ||
2 | Upstream is not making further releases of this software. | ||
3 | |||
4 | Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | ||
5 | |||
6 | # Allow user mode NFS to work without rpcbind / portmap | ||
7 | # Patch origin: Wind River | ||
8 | |||
9 | --- | ||
10 | rpcmisc.c | 6 ++++-- | ||
11 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
12 | |||
13 | --- a/rpcmisc.c | ||
14 | +++ b/rpcmisc.c | ||
15 | @@ -91,7 +91,8 @@ not_inetd: | ||
16 | if (transp == NULL) | ||
17 | Dprintf(L_FATAL, "cannot create udp service."); | ||
18 | for (i = 0; (vers = verstbl[i]) != 0; i++) { | ||
19 | - if (!svc_register(transp, prog, vers, dispatch, IPPROTO_UDP)) { | ||
20 | + if (!(svc_register(transp, prog, vers, dispatch, IPPROTO_UDP) || | ||
21 | + svc_register(transp, prog, vers, dispatch, 0))) { | ||
22 | Dprintf(L_FATAL, | ||
23 | "unable to register (%s, %d, udp).", | ||
24 | name, vers); | ||
25 | @@ -110,7 +111,8 @@ not_inetd: | ||
26 | transp->xp_ops->xp_recv = auth_rendevouser; | ||
27 | #endif | ||
28 | for (i = 0; (vers = verstbl[i]) != 0; i++) { | ||
29 | - if (!svc_register(transp, prog, vers, dispatch, IPPROTO_TCP)) { | ||
30 | + if (!(svc_register(transp, prog, vers, dispatch, IPPROTO_TCP) || | ||
31 | + svc_register(transp, prog, vers, dispatch, 0))) { | ||
32 | Dprintf(L_FATAL, | ||
33 | "unable to register (%s, %d, tcp).", | ||
34 | name, vers); | ||