Skip to contentSkip to conversation

autofs breaking nfs4 protocol by sending udp probes ?

DISCUSSION Guillaume Rousse 2 participants 4 messages Jan 17, 2008 – Jan 31, 2008 Kernel automounter

lore
Share & tools
lore
maintainer
#1 lore raw
Quoted 2 lines · Guillaume Rousse

According to nfs4 developpers, autofs is suspect there:
http://linux-nfs.org/pipermail/nfsv4/2007-December/007332.html

Please try this patch and let me know how it goes. Ian

---

modules/mount_nfs.c +1 -1
index 0e7aebe..df01fd6 100644
@@ -129,7 +129,7 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
 	}
 
 	if (strcmp(fstype, "nfs4") == 0)
-		vers = NFS4_VERS_MASK | NFS_PROTO_MASK;
+		vers = NFS4_VERS_MASK | NFS_TCP_SUPPORTED;
 	else
 		vers = NFS_VERS_MASK | NFS_PROTO_MASK;
maintainer
#2 lore raw
Quoted 5 lines · Ian Kent
Quoted 2 lines · Guillaume Rousse

According to nfs4 developpers, autofs is suspect there:
http://linux-nfs.org/pipermail/nfsv4/2007-December/007332.html

Please try this patch and let me know how it goes.

This one isn't right.
Can you try this one instead please.
http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.3-nfs4-tcp-only.patch

Quoted 22 lines

Ian

---

modules/mount_nfs.c +1 -1
index 0e7aebe..df01fd6 100644
@@ -129,7 +129,7 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
 	}
 
 	if (strcmp(fstype, "nfs4") == 0)
-		vers = NFS4_VERS_MASK | NFS_PROTO_MASK;
+		vers = NFS4_VERS_MASK | NFS_TCP_SUPPORTED;
 	else
 		vers = NFS_VERS_MASK | NFS_PROTO_MASK;
 

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#3 lore raw
Quoted 9 lines · Ian Kent
Quoted 4 lines · Ian Kent
Quoted 2 lines · Guillaume Rousse

According to nfs4 developpers, autofs is suspect there:
http://linux-nfs.org/pipermail/nfsv4/2007-December/007332.html

Please try this patch and let me know how it goes.

This one isn't right.
Can you try this one instead please.
http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.3-nfs4-tcp-only.patch

Works OK, thanks again.

Signature · 3 lines
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62