Fix nfs args setting code (raven at the maw dot net)
authorzoulasc <christos@zoulas.com>
Thu, 30 Apr 2015 18:24:39 +0000 (14:24 -0400)
committerzoulasc <christos@zoulas.com>
Thu, 30 Apr 2015 18:24:39 +0000 (14:24 -0400)
ChangeLog
libamu/mount_fs.c

index fd0508704c883b6d449d46d54873a3ac5bf5c6ae..64be68283692ef2bbd7de092c5d22009e6b96fd5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-30  Christos Zoulas <christos@zoulas.com>
+
+       * fix compilation error in nfs args set code.
+         (raven at themaw.net)
+
 2015-01-17  Christos Zoulas <christos@zoulas.com>
 
        * Move libtool macro functions from m4/macros to m4 and delete
index b577bab3e78cb4c10d121e91b7b45a08f960f392..87f64c369d1f0f3881938e7b885e80826c23ff43 100644 (file)
@@ -1001,12 +1001,12 @@ compute_nfs23_args(nfs_args_t *nap,
 
 #ifdef MNTTAB_OPT_SYMTTL       /* symlink cache time-to-live */
   if ((nap->symttl = hasmntval(mntp, MNTTAB_OPT_SYMTTL)))
-    nap->args.flags |= MNT2_NFS_OPT_SYMTTL;
+    nap->flags |= MNT2_NFS_OPT_SYMTTL;
 #endif /* MNTTAB_OPT_SYMTTL */
 
 #ifdef MNT2_NFS_OPT_PGTHRESH   /* paging threshold */
   if ((nap->pg_thresh = hasmntval(mntp, MNTTAB_OPT_PGTHRESH)))
-    nap->args.flags |= MNT2_NFS_OPT_PGTHRESH;
+    nap->flags |= MNT2_NFS_OPT_PGTHRESH;
 #endif /* MNT2_NFS_OPT_PGTHRESH */
 
 #if defined(MNT2_NFS_OPT_POSIX) && defined(MNTTAB_OPT_POSIX)
@@ -1029,12 +1029,12 @@ compute_nfs23_args(nfs_args_t *nap,
     return;
   }
   /* update the flags field for knconf */
-  nap->args.flags |= MNT2_NFS_OPT_KNCONF;
+  nap->flags |= MNT2_NFS_OPT_KNCONF;
 #endif /* HAVE_TRANSPORT_TYPE_TLI */
 
 #ifdef MNT2_NFS_OPT_FSNAME
   nap->fsname = fs_name;
-  nap->args.flags |= MNT2_NFS_OPT_FSNAME;
+  nap->flags |= MNT2_NFS_OPT_FSNAME;
 #endif /* MNT2_NFS_OPT_FSNAME */
 
 
@@ -1323,7 +1323,7 @@ compute_nfs4_args(nfs4_args_t *nap,
 
 #if defined(MNT2_NFS_OPT_POSIX) && defined(MNTTAB_OPT_POSIX)
   if (amu_hasmntopt(mntp, MNTTAB_OPT_POSIX) != NULL) {
-    nap->args.flags |= MNT2_NFS_OPT_POSIX;
+    nap->flags |= MNT2_NFS_OPT_POSIX;
 # ifdef HAVE_NFS_ARGS_T_PATHCONF
     nap->pathconf = NULL;
 # endif /* HAVE_NFS_ARGS_T_PATHCONF */
@@ -1333,7 +1333,7 @@ compute_nfs4_args(nfs4_args_t *nap,
 #if defined(MNT2_NFS_OPT_MAXGRPS) && defined(MNTTAB_OPT_MAXGROUPS)
   nap->maxgrouplist = hasmntval(mntp, MNTTAB_OPT_MAXGROUPS);
   if (nap->maxgrouplist != 0)
-    nap->args.flags |= MNT2_NFS_OPT_MAXGRPS;
+    nap->flags |= MNT2_NFS_OPT_MAXGRPS;
 #endif /* defined(MNT2_NFS_OPT_MAXGRPS) && defined(MNTTAB_OPT_MAXGROUPS) */
 
 #ifdef HAVE_NFS_ARGS_T_OPTSTR