From: Christos Zoulas Date: Thu, 6 Oct 2011 14:44:02 +0000 (-0400) Subject: add NFSv4 support X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=27dbae5eb2eafdd5f8830db656e0d1c28355f818;p=am-utils-6.2.git add NFSv4 support --- diff --git a/conf/nfs_prot/nfs_prot_linux.h b/conf/nfs_prot/nfs_prot_linux.h index 15f26112..4953f0e5 100644 --- a/conf/nfs_prot/nfs_prot_linux.h +++ b/conf/nfs_prot/nfs_prot_linux.h @@ -264,6 +264,36 @@ struct nfs_args { }; typedef struct nfs_args nfs_args_t; +#define NFS4_MOUNT_VERSION 1 + +struct nfs_string { + unsigned int len; + char *data; +}; + +struct nfs4_args { + int version; /* 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; /* 1 */ + struct nfs_string client_addr; /* 1 */ + struct nfs_string mnt_path; /* 1 */ + struct nfs_string hostname; /* 1 */ + unsigned int host_addrlen; /* 1 */ + struct sockaddr *host_addr; /* 1 */ + int proto; /* 1 */ + int auth_flavourlen;/* 1 */ + int *auth_flavours; /* 1 */ +}; + +typedef struct nfs4_args nfs4_args_t; + /* HACK: these are not defined on Linux but we still need them * internally. We have to be able to differentiate between having a * timeout value set to zero and not having the option at all. These