Commit 89c8023f authored by Liwei Song's avatar Liwei Song Committed by Trond Myklebust

nfsroot: set tcp as the default transport protocol

UDP is disabled by default in commit b24ee6c6 ("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: b24ee6c6 ("NFS: allow deprecation of NFS UDP protocol")
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 8605cf0e
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
#define NFS_ROOT "/tftpboot/%s" #define NFS_ROOT "/tftpboot/%s"
/* Default NFSROOT mount options. */ /* 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 */ /* Parameters passed from the kernel command line */
static char nfs_root_parms[NFS_MAXPATHLEN + 1] __initdata = ""; static char nfs_root_parms[NFS_MAXPATHLEN + 1] __initdata = "";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment