Skip to contentSkip to conversation

nfsroot: set tcp as the defalut transport protocol

PATCH New Song liwei 1 participant 1 message Mar 25, 2020

Subsystems (2)
lore
Share & tools
lore

Song liwei

author
#0 lore raw

PATCH 1/1 nfsroot: set tcp as the defalut transport protocol

From: Liwei Song <[email protected]>

UDP is disabled by default in commit b24ee6c64ca7 ("NFS: allow deprecation of NFS UDP protocol"), but the default mount options is still udp, change it to tcp to avoid the "Unsupported transport protocol udp" error if no protocol is specified when mount nfs.

Fixes b24ee6c64ca7 ("NFS: allow deprecation of NFS UDP protocol")
---
 fs/nfs/nfsroot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfsroot.c +1 -1
index effaa4247b91..8d3278805602 100644
@@ -88,7 +88,7 @@
 #define NFS_ROOT		"/tftpboot/%s"
 
 /* Default NFSROOT mount options. */
-#define NFS_DEF_OPTIONS		"vers=2,udp,rsize=4096,wsize=4096"
+#define NFS_DEF_OPTIONS		"vers=2,tcp,rsize=4096,wsize=4096"
 
 /* Parameters passed from the kernel command line */
 static char nfs_root_parms[NFS_MAXPATHLEN + 1] __initdata = "";
Signature · 1 line
2.17.1