summaryrefslogtreecommitdiffstats
path: root/isys/nfs_mount3.h
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-06-08 18:25:28 +0000
committerMatt Wilson <msw@redhat.com>2000-06-08 18:25:28 +0000
commit85dce9166450323acb82bc303e2104dff3508c5a (patch)
tree31d2873d7e0aed8e1c1dabb8615e24ce36ff5568 /isys/nfs_mount3.h
parent383467e9e4e8c2d4340b282df11f1208ebab7527 (diff)
downloadanaconda-85dce9166450323acb82bc303e2104dff3508c5a.tar.gz
anaconda-85dce9166450323acb82bc303e2104dff3508c5a.tar.xz
anaconda-85dce9166450323acb82bc303e2104dff3508c5a.zip
uprev the check for the nfs mount structure to 4, we need to override the kernel version
Diffstat (limited to 'isys/nfs_mount3.h')
-rw-r--r--isys/nfs_mount3.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/isys/nfs_mount3.h b/isys/nfs_mount3.h
index 219251881..f4e7342cd 100644
--- a/isys/nfs_mount3.h
+++ b/isys/nfs_mount3.h
@@ -6,7 +6,7 @@
*/
#include "nfs_mountversion.h"
-#if KERNEL_NFS_MOUNT_VERSION >= 3
+#if KERNEL_NFS_MOUNT_VERSION >= 4
#define _LINUX_IN_H 1
@@ -28,11 +28,18 @@ struct nfs_fh {
#else /* KERNEL_NFS_MOUNT_VERSION < 3 */
+#ifndef NFS_VERSION
+#define NFS_VERSION 2
+#endif
+
/*
* We know more than the kernel. Override the kernel defines.
* Check at runtime whether the running kernel can handle the new stuff.
*/
-#define NFS_MOUNT_VERSION 3
+
+struct nfs_fh {
+ char data[NFS_FHSIZE];
+};
struct nfs_mount_data {
int version; /* 1 */