Merge pull request #48 from plieven/master
make adjustments for v6 of the qemu NFS driverlibnfs-4.0.0-vitalif
commit
6bdc803366
|
@ -1,5 +1,5 @@
|
|||
AC_PREREQ(2.50)
|
||||
AC_INIT([libnfs], [1.8.90], [ronniesahlberg@gmail.com])
|
||||
AC_INIT([libnfs], [1.8.91], [ronniesahlberg@gmail.com])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AM_INIT_AUTOMAKE([foreign])
|
||||
AC_CANONICAL_HOST
|
||||
|
|
|
@ -166,6 +166,13 @@ EXTERN uint64_t nfs_get_readmax(struct nfs_context *nfs);
|
|||
*/
|
||||
EXTERN uint64_t nfs_get_writemax(struct nfs_context *nfs);
|
||||
|
||||
/*
|
||||
* MODIFY CONNECT PARAMTERS
|
||||
*/
|
||||
|
||||
EXTERN void nfs_set_tcp_syncnt(struct nfs_context *nfs, int v);
|
||||
EXTERN void nfs_set_uid(struct nfs_context *nfs, int uid);
|
||||
EXTERN void nfs_set_gid(struct nfs_context *nfs, int gid);
|
||||
|
||||
/*
|
||||
* MOUNT THE EXPORT
|
||||
|
|
12
lib/libnfs.c
12
lib/libnfs.c
|
@ -3904,6 +3904,18 @@ uint64_t nfs_get_writemax(struct nfs_context *nfs)
|
|||
return nfs->writemax;
|
||||
}
|
||||
|
||||
void nfs_set_tcp_syncnt(struct nfs_context *nfs, int v) {
|
||||
rpc_set_tcp_syncnt(nfs->rpc, v);
|
||||
}
|
||||
|
||||
void nfs_set_uid(struct nfs_context *nfs, int uid) {
|
||||
rpc_set_uid(nfs->rpc, uid);
|
||||
}
|
||||
|
||||
void nfs_set_gid(struct nfs_context *nfs, int gid) {
|
||||
rpc_set_gid(nfs->rpc, gid);
|
||||
}
|
||||
|
||||
void nfs_set_error(struct nfs_context *nfs, char *error_string, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
|
|
@ -399,6 +399,10 @@ void rpc_set_tcp_syncnt(struct rpc_context *rpc, int v)
|
|||
rpc->tcp_syncnt = v;
|
||||
}
|
||||
|
||||
#ifndef TCP_SYNCNT
|
||||
#define TCP_SYNCNT 7
|
||||
#endif
|
||||
|
||||
static int rpc_connect_sockaddr_async(struct rpc_context *rpc, struct sockaddr_storage *s)
|
||||
{
|
||||
int socksize;
|
||||
|
|
Loading…
Reference in New Issue