[PATCH v2 02/11] nfs: fix mount prog version in portmap lookup

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Feb 7 16:28:04 EST 2014


We're speaking rpc mount version 2 (i.e. the same version as the
implemented nfs protocol), so also specify that in the lookup.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---

Notes:
    new in v2

 fs/nfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfs.c b/fs/nfs.c
index 717326435189..6582bae7db31 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -1010,7 +1010,7 @@ static int nfs_probe(struct device_d *dev)
 	/* Need a priviliged source port */
 	net_udp_bind(npriv->con, 1000);
 
-	ret = rpc_lookup_req(npriv, PROG_MOUNT, 1);
+	ret = rpc_lookup_req(npriv, PROG_MOUNT, 2);
 	if (ret) {
 		printf("lookup mount port failed with %d\n", ret);
 		goto err2;
-- 
1.8.5.2




More information about the barebox mailing list