diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-10-07 17:18:41 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-10-07 17:27:49 +0100 |
commit | 886783e7a10fb7a638bc6034e4cdcb6296cea6a1 (patch) | |
tree | 9de86afda824c3044db3d97928be6851d2aea1a7 | |
parent | 5b7689f66c4476432ebe8fe8a88ea9fdeaa4eba8 (diff) | |
download | klibc-886783e7a10fb7a638bc6034e4cdcb6296cea6a1.tar.gz |
[klibc] nfsmount: Use kernel client's default value for timeo optionklibc-2.0.7
The current default of timeo=7 (0.7 seconds) is too short, especially
on slow networks. We should not override the kernel client's default
unless explicitly requested.
This option is passed to the kernel through struct nfs_mount_data
rather than as a string, so we have to provide some value. The kernel
client currently treats either 0 or UINT_MAX as requesting the default.
nfs-utils passes 0, so do the same here.
Reported-by: Alkis Georgopoulos <alkisg@gmail.com>
References: https://lists.zytor.com/archives/klibc/2019-September/004233.html
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | usr/kinit/nfsmount/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/kinit/nfsmount/main.c b/usr/kinit/nfsmount/main.c index cca9e4ec582ad9..66969f426ec5cf 100644 --- a/usr/kinit/nfsmount/main.c +++ b/usr/kinit/nfsmount/main.c @@ -26,7 +26,7 @@ static struct nfs_mount_data mount_data = { .flags = NFS_MOUNT_NONLM | NFS_MOUNT_VER3 | NFS_MOUNT_TCP, .rsize = 0, /* Server's choice */ .wsize = 0, /* Server's choice */ - .timeo = 7, + .timeo = 0, /* Kernel client's default */ .retrans = 3, .acregmin = 3, .acregmax = 60, |