summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-05-04 17:03:30 (GMT)
committer Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-05-04 17:03:30 (GMT)
commit882062915d52581fb754e5721addca72aa789ab7 (patch)
treec405e5719e7da448d93710b2863509d206bbf7ab
parent7945808c871f1cf659f7cbd74da18daad052fa40 (diff)
downloadbusybox-882062915d52581fb754e5721addca72aa789ab7.tar.gz
busybox-882062915d52581fb754e5721addca72aa789ab7.tar.bz2
mount: for NFS use tcp per default rather than udp
nfs-utils's mount.nfs uses TCP per default unless explicitly asked for otherwise. This is also the expected behaviour for NFSv4, so ok there, too. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--util-linux/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 3e2ba1f..6a154e2 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1195,7 +1195,7 @@ static NOINLINE int nfsmount(struct mntent *mp, long vfsflags, char *filteropts)
noac = 0;
nordirplus = 0;
retry = 10000; /* 10000 minutes ~ 1 week */
- tcp = 0;
+ tcp = 1; /* nfs-utils uses tcp per default */
mountprog = MOUNTPROG;
mountvers = 0;