summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-03-27 13:22:32 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-03-27 13:22:32 +0000
commit2f94f060396f581b5d2fda66477b35bb3dcabd8b (patch)
tree7c00bf796ddffe0ac41af4fef86bcbec1c1d2084
parent564cabf99198bc8a564eb58bc6c674a2b8f21927 (diff)
downloaddrakx-backup-do-not-use-2f94f060396f581b5d2fda66477b35bb3dcabd8b.tar
drakx-backup-do-not-use-2f94f060396f581b5d2fda66477b35bb3dcabd8b.tar.gz
drakx-backup-do-not-use-2f94f060396f581b5d2fda66477b35bb3dcabd8b.tar.bz2
drakx-backup-do-not-use-2f94f060396f581b5d2fda66477b35bb3dcabd8b.tar.xz
drakx-backup-do-not-use-2f94f060396f581b5d2fda66477b35bb3dcabd8b.zip
force 8192 bytes for nfs transfers
-rw-r--r--mdk-stage1/nfsmount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdk-stage1/nfsmount.c b/mdk-stage1/nfsmount.c
index 77fbb530e..020d0cdf4 100644
--- a/mdk-stage1/nfsmount.c
+++ b/mdk-stage1/nfsmount.c
@@ -163,8 +163,6 @@ int nfsmount_prepare(const char *spec, int *flags, char **mount_opts)
/* Set default options.
- * rsize/wsize (and bsize, for ver >= 3) are left 0 in order to
- * let the kernel decide.
* timeo is filled in after we know whether it'll be TCP or UDP. */
memset(&data, 0, sizeof(data));
data.retrans = 3;
@@ -172,6 +170,9 @@ int nfsmount_prepare(const char *spec, int *flags, char **mount_opts)
data.acregmax = 60;
data.acdirmin = 30;
data.acdirmax = 60;
+ data.rsize = 8192;
+ data.wsize = 8192;
+ data.bsize = 8192;
#if NFS_MOUNT_VERSION >= 2
data.namlen = NAME_MAX;
#endif