mount: for NFS use tcp per default rather than udp
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 4 May 2011 17:03:30 +0000 (19:03 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 4 May 2011 17:03:30 +0000 (19:03 +0200)
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>
util-linux/mount.c

index 3e2ba1f..6a154e2 100644 (file)
@@ -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;