add NFSv4 support
authorChristos Zoulas <christos@zoulas.com>
Thu, 6 Oct 2011 14:44:02 +0000 (10:44 -0400)
committerChristos Zoulas <christos@zoulas.com>
Thu, 6 Oct 2011 14:44:02 +0000 (10:44 -0400)
conf/nfs_prot/nfs_prot_linux.h

index 15f2611297671fd0d4e28841fb5f07fdd2c0e1c2..4953f0e5a1207c5751035f074daabf5660ec9916 100644 (file)
@@ -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