search for: nfs_mount_data

Displaying 8 results from an estimated 8 matches for "nfs_mount_data".

2004 Aug 19
5
[PATCH] use reliable nfs mount options per default
...esired 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...
2019 Oct 07
0
[klibc:master] nfsmount: Use kernel client's default value for timeo option
...[klibc] nfsmount: Use kernel client's default value for timeo option 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 at gmail.com> References: https://lists.zytor.com/archives/klibc/201...
2017 Sep 14
0
[PATCH] nfsmount: support nfsvers= and vers= options
...imag.fr> --- usr/kinit/nfsmount/main.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/usr/kinit/nfsmount/main.c b/usr/kinit/nfsmount/main.c index 36b29a5f..cca9e4ec 100644 --- a/usr/kinit/nfsmount/main.c +++ b/usr/kinit/nfsmount/main.c @@ -36,12 +36,15 @@ static struct nfs_mount_data mount_data = { }; int nfs_port; +int nfs_version; static struct int_opts { char *name; int *val; } int_opts[] = { {"port", &nfs_port}, + {"nfsvers", &nfs_version}, + {"vers", &nfs_version}, {"rsize", &mount_data.rsize}, {&quo...
2019 Jan 18
0
[klibc:master] nfsmount: support nfsvers= and vers= options
...t.org.uk> --- usr/kinit/nfsmount/main.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/usr/kinit/nfsmount/main.c b/usr/kinit/nfsmount/main.c index 36b29a5..cca9e4e 100644 --- a/usr/kinit/nfsmount/main.c +++ b/usr/kinit/nfsmount/main.c @@ -36,12 +36,15 @@ static struct nfs_mount_data mount_data = { }; int nfs_port; +int nfs_version; static struct int_opts { char *name; int *val; } int_opts[] = { {"port", &nfs_port}, + {"nfsvers", &nfs_version}, + {"vers", &nfs_version}, {"rsize", &mount_data.rsize}, {&quo...
2005 Jun 05
0
fancy dump_fs for nfsmount
...lt; len) + printf ("%c", isprint(buf[i]) ? buf[i] : '.'); + if (i % 4 == 3) printf (" "); + } + printf ("\n"); + done += 16; + } +} +#endif NFS_DEBUG + + static inline void dump_params(__u32 server, const char *path, const struct nfs_mount_data *data) @@ -122,23 +149,7 @@ static inline void dump_fh(const char *data, int len) { #ifdef NFS_DEBUG - int i = 0; - int max = len - (len % 8); - - printf("Root file handle: %d bytes\n", NFS2_FHSIZE); - - while (i < max) { - int j; - - printf(" %4d: ", i); - for (j = 0...
2005 May 22
1
[patch 11/12] Unpleasantness in linux/nfs_mount.h
.... If + * a new field is required then add it to the end. The version field + * tracks which fields are present. This will ensure some measure of + * mount-to-kernel version compatibility. Some of these aren't used yet + * but here they are anyway. */ +#define NFS_MOUNT_VERSION 5 + +struct nfs_mount_data { + int version; /* 1 */ + int fd; /* 1 */ + struct nfs2_fh old_root; /* 1 */ + int flags; /* 1 */ + int rsize; /* 1 */ + int wsize; /* 1 */ + int timeo; /* 1 */ + int retrans; /* 1 */ + int acregmin; /* 1 */ + int acregmax; /* 1 */ + int acdirmin; /* 1 */ + int acdirmax;...
2006 Jun 26
0
[klibc 14/43] Remove in-kernel nfsroot code
...ed from the kernel command line */ -static char nfs_root_name[256] __initdata = ""; - -/* Address of NFS server */ -static __u32 servaddr __initdata = 0; - -/* Name of directory to mount */ -static char nfs_path[NFS_MAXPATHLEN] __initdata = { 0, }; - -/* NFS-related data */ -static struct nfs_mount_data nfs_data __initdata = { 0, };/* NFS mount info */ -static int nfs_port __initdata = 0; /* Port to connect to for NFS */ -static int mount_port __initdata = 0; /* Mount daemon port number */ - - -/*************************************************************************** - - Parsing of opt...
2003 May 22
0
[PATCH 2.5.69 2/3] Remove NFS root support from the kernel
...ed from the kernel command line */ -static char nfs_root_name[256] __initdata = ""; - -/* Address of NFS server */ -static __u32 servaddr __initdata = 0; - -/* Name of directory to mount */ -static char nfs_path[NFS_MAXPATHLEN] __initdata = { 0, }; - -/* NFS-related data */ -static struct nfs_mount_data nfs_data __initdata = { 0, };/* NFS mount info */ -static int nfs_port __initdata = 0; /* Port to connect to for NFS */ -static int mount_port __initdata = 0; /* Mount daemon port number */ - - -/*************************************************************************** - - Parsing of opt...