NFSv4 support
authorChristos Zoulas <christos@zoulas.com>
Thu, 6 Oct 2011 14:57:32 +0000 (10:57 -0400)
committerChristos Zoulas <christos@zoulas.com>
Thu, 6 Oct 2011 14:57:32 +0000 (10:57 -0400)
libamu/amu.h

index 5b12b1b2294d1034d42a9e5db6d201166242e57d..2b075f7d567b9ca1957a7c80baab956f17a0adcd 100644 (file)
 /*
  * Decide what maximum level of NFS server to try and mount with.
  */
-#ifdef HAVE_FS_NFS3
+#if defined(HAVE_FS_NFS4)
+# define NFS_VERS_MAX NFS_VERSION4
+#elif defined(HAVE_FS_NFS3)
 # define NFS_VERS_MAX NFS_VERSION3
 #else /* not HAVE_FS_NFS3 */
 # define NFS_VERS_MAX NFS_VERSION
 #endif /* not HAVE_FS_NFS3 */
+# define NFS_VERS_MIN NFS_VERSION
 
 /* some systems like ncr2 do not define this in <rpcsvc/mount.h> */
 #ifndef MNTPATHLEN