[klibc] [PATCH] use reliable nfs mount options per default

Olaf Hering olh at suse.de
Thu Aug 19 12:17:27 PDT 2004


Peter,

we found that nfs over udp will corrupt data under very extrem load,
there is no way to fix it due to the way how UDP works.
TCP will not have these problems.
I also wonder why the package size is only 1k. Everyone who wishes a
slow connection can pass the desired options via the kernel cmdline.
Everyone else prefers probably the fast mount.
The defaults should look more like that:


--- nfsmount/main.c~	2004-02-12 03:19:14.000000000 +0100
+++ nfsmount/main.c	2004-05-27 13:31:19.000000000 +0200
@@ -20,9 +20,9 @@ static char *progname;
 
 static struct nfs_mount_data mount_data = {
 	.version = NFS_MOUNT_VERSION,
-	.flags = NFS_MOUNT_NONLM,
-	.rsize = 1024,
-	.wsize = 1024,
+	.flags = NFS_MOUNT_NONLM | NFS_MOUNT_VER3 | NFS_MOUNT_TCP,
+	.rsize = 8192,
+	.wsize = 8192,
 	.timeo = 7,
 	.retrans = 3,
 	.acregmin = 3,

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG



More information about the klibc mailing list