summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-09-19 18:21:32 +0000
committernate <nate@FreeBSD.org>1996-09-19 18:21:32 +0000
commit45c85d421d05f7b96a102826ea41b4f7dc31c017 (patch)
tree0cf0ba5fc468e2333547b81142b3e6682d895b1d /sys/nfs
parent43f6021163b3ac1fd5741353fb84010eb75b0cc0 (diff)
downloadFreeBSD-src-45c85d421d05f7b96a102826ea41b4f7dc31c017.zip
FreeBSD-src-45c85d421d05f7b96a102826ea41b4f7dc31c017.tar.gz
In sys/time.h, struct timespec is defined as:
/* * Structure defined by POSIX.4 to be like a timeval. */ struct timespec { time_t ts_sec; /* seconds */ long ts_nsec; /* and nanoseconds */ }; The correct names of the fields are tv_sec and tv_nsec. Reminded by: James Drobina <jdrobina@infinet.com>
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_bio.c10
-rw-r--r--sys/nfs/nfs_common.c8
-rw-r--r--sys/nfs/nfs_common.h10
-rw-r--r--sys/nfs/nfs_serv.c10
-rw-r--r--sys/nfs/nfs_subs.c8
-rw-r--r--sys/nfs/nfs_vnops.c60
-rw-r--r--sys/nfs/nfsm_subs.h10
-rw-r--r--sys/nfs/xdr_subs.h22
8 files changed, 69 insertions, 69 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index d1bb47e..61e6d00 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.5 (Berkeley) 1/4/94
- * $Id: nfs_bio.c,v 1.23 1996/06/08 05:59:04 pst Exp $
+ * $Id: nfs_bio.c,v 1.24 1996/07/16 10:19:43 dfr Exp $
*/
#include <sys/param.h>
@@ -142,18 +142,18 @@ nfs_bioread(vp, uio, ioflag, cred)
error = VOP_GETATTR(vp, &vattr, cred, p);
if (error)
return (error);
- np->n_mtime = vattr.va_mtime.ts_sec;
+ np->n_mtime = vattr.va_mtime.tv_sec;
} else {
error = VOP_GETATTR(vp, &vattr, cred, p);
if (error)
return (error);
- if (np->n_mtime != vattr.va_mtime.ts_sec) {
+ if (np->n_mtime != vattr.va_mtime.tv_sec) {
if (vp->v_type == VDIR)
nfs_invaldir(vp);
error = nfs_vinvalbuf(vp, V_SAVE, cred, p, 1);
if (error)
return (error);
- np->n_mtime = vattr.va_mtime.ts_sec;
+ np->n_mtime = vattr.va_mtime.tv_sec;
}
}
}
@@ -853,7 +853,7 @@ nfs_doio(bp, cr, p)
NQNFS_CKINVALID(vp, np, ND_READ) &&
np->n_lrev != np->n_brev) ||
(!(nmp->nm_flag & NFSMNT_NQNFS) &&
- np->n_mtime != np->n_vattr.va_mtime.ts_sec))) {
+ np->n_mtime != np->n_vattr.va_mtime.tv_sec))) {
uprintf("Process killed due to text file modification\n");
psignal(p, SIGKILL);
#ifdef __NetBSD__
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c
index c45e502..7d97f09 100644
--- a/sys/nfs/nfs_common.c
+++ b/sys/nfs/nfs_common.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_subs.c,v 1.31 1996/07/16 10:19:44 dfr Exp $
+ * $Id: nfs_subs.c,v 1.32 1996/08/21 21:55:51 dyson Exp $
*/
/*
@@ -1311,7 +1311,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper)
*vpp = vp = nvp;
}
}
- np->n_mtime = mtime.ts_sec;
+ np->n_mtime = mtime.tv_sec;
}
vap = &np->n_vattr;
vap->va_type = vtyp;
@@ -1341,8 +1341,8 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper)
vap->va_fileid = fxdr_unsigned(long, fp->fa2_fileid);
fxdr_nfsv2time(&fp->fa2_atime, &vap->va_atime);
vap->va_flags = 0;
- vap->va_ctime.ts_sec = fxdr_unsigned(long, fp->fa2_ctime.nfsv2_sec);
- vap->va_ctime.ts_nsec = 0;
+ vap->va_ctime.tv_sec = fxdr_unsigned(long, fp->fa2_ctime.nfsv2_sec);
+ vap->va_ctime.tv_nsec = 0;
vap->va_gen = fxdr_unsigned(u_long, fp->fa2_ctime.nfsv2_usec);
vap->va_filerev = 0;
}
diff --git a/sys/nfs/nfs_common.h b/sys/nfs/nfs_common.h
index f935b7a..324df71 100644
--- a/sys/nfs/nfs_common.h
+++ b/sys/nfs/nfs_common.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93
- * $Id: nfsm_subs.h,v 1.7 1995/06/27 11:06:55 dfr Exp $
+ * $Id: nfsm_subs.h,v 1.8 1995/08/24 10:45:16 dfr Exp $
*/
#ifndef _NFS_NFSM_SUBS_H_
@@ -426,8 +426,8 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
fxdr_nfsv3time(tl, &(a)->va_atime); \
break; \
case NFSV3SATTRTIME_TOSERVER: \
- (a)->va_atime.ts_sec = time.tv_sec; \
- (a)->va_atime.ts_nsec = time.tv_usec * 1000; \
+ (a)->va_atime.tv_sec = time.tv_sec; \
+ (a)->va_atime.tv_nsec = time.tv_usec * 1000; \
break; \
}; \
nfsm_dissect(tl, u_long *, NFSX_UNSIGNED); \
@@ -437,8 +437,8 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
fxdr_nfsv3time(tl, &(a)->va_mtime); \
break; \
case NFSV3SATTRTIME_TOSERVER: \
- (a)->va_mtime.ts_sec = time.tv_sec; \
- (a)->va_mtime.ts_nsec = time.tv_usec * 1000; \
+ (a)->va_mtime.tv_sec = time.tv_sec; \
+ (a)->va_mtime.tv_nsec = time.tv_usec * 1000; \
break; \
}; }
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 145a6e6..9f2010e 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
- * $Id: nfs_serv.c,v 1.32 1996/09/03 14:24:59 bde Exp $
+ * $Id: nfs_serv.c,v 1.33 1996/09/05 07:58:04 davidg Exp $
*/
/*
@@ -282,9 +282,9 @@ nfsrv_setattr(nfsd, slp, procp, mrq)
#ifdef notyet
fxdr_nfsv2time(&sp->sa_atime, &vap->va_atime);
#else
- vap->va_atime.ts_sec =
+ vap->va_atime.tv_sec =
fxdr_unsigned(long, sp->sa_atime.nfsv2_sec);
- vap->va_atime.ts_nsec = 0;
+ vap->va_atime.tv_nsec = 0;
#endif
}
if (sp->sa_mtime.nfsv2_sec != nfs_xdrneg1)
@@ -305,8 +305,8 @@ nfsrv_setattr(nfsd, slp, procp, mrq)
if (v3) {
error = preat_ret = VOP_GETATTR(vp, &preat, cred, procp);
if (!error && gcheck &&
- (preat.va_ctime.ts_sec != guard.ts_sec ||
- preat.va_ctime.ts_nsec != guard.ts_nsec))
+ (preat.va_ctime.tv_sec != guard.tv_sec ||
+ preat.va_ctime.tv_nsec != guard.tv_nsec))
error = NFSERR_NOT_SYNC;
if (error) {
vput(vp);
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index c45e502..7d97f09 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_subs.c,v 1.31 1996/07/16 10:19:44 dfr Exp $
+ * $Id: nfs_subs.c,v 1.32 1996/08/21 21:55:51 dyson Exp $
*/
/*
@@ -1311,7 +1311,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper)
*vpp = vp = nvp;
}
}
- np->n_mtime = mtime.ts_sec;
+ np->n_mtime = mtime.tv_sec;
}
vap = &np->n_vattr;
vap->va_type = vtyp;
@@ -1341,8 +1341,8 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper)
vap->va_fileid = fxdr_unsigned(long, fp->fa2_fileid);
fxdr_nfsv2time(&fp->fa2_atime, &vap->va_atime);
vap->va_flags = 0;
- vap->va_ctime.ts_sec = fxdr_unsigned(long, fp->fa2_ctime.nfsv2_sec);
- vap->va_ctime.ts_nsec = 0;
+ vap->va_ctime.tv_sec = fxdr_unsigned(long, fp->fa2_ctime.nfsv2_sec);
+ vap->va_ctime.tv_nsec = 0;
vap->va_gen = fxdr_unsigned(u_long, fp->fa2_ctime.nfsv2_usec);
vap->va_filerev = 0;
}
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 6a56128..3e6de17 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
- * $Id: nfs_vnops.c,v 1.33 1996/01/25 00:45:37 bde Exp $
+ * $Id: nfs_vnops.c,v 1.34 1996/07/16 10:19:45 dfr Exp $
*/
/*
@@ -483,18 +483,18 @@ nfs_open(ap)
error = VOP_GETATTR(vp, &vattr, ap->a_cred, ap->a_p);
if (error)
return (error);
- np->n_mtime = vattr.va_mtime.ts_sec;
+ np->n_mtime = vattr.va_mtime.tv_sec;
} else {
error = VOP_GETATTR(vp, &vattr, ap->a_cred, ap->a_p);
if (error)
return (error);
- if (np->n_mtime != vattr.va_mtime.ts_sec) {
+ if (np->n_mtime != vattr.va_mtime.tv_sec) {
if (vp->v_type == VDIR)
np->n_direofoffset = 0;
if ((error = nfs_vinvalbuf(vp, V_SAVE,
ap->a_cred, ap->a_p, 1)) == EINTR)
return (error);
- np->n_mtime = vattr.va_mtime.ts_sec;
+ np->n_mtime = vattr.va_mtime.tv_sec;
}
}
}
@@ -634,8 +634,8 @@ nfs_setattr(ap)
* Disallow write attempts if the filesystem is mounted read-only.
*/
if ((vap->va_flags != VNOVAL || vap->va_uid != (uid_t)VNOVAL ||
- vap->va_gid != (gid_t)VNOVAL || vap->va_atime.ts_sec != VNOVAL ||
- vap->va_mtime.ts_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) &&
+ vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL ||
+ vap->va_mtime.tv_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) &&
(vp->v_mount->mnt_flag & MNT_RDONLY))
return (EROFS);
if (vap->va_size != VNOVAL) {
@@ -644,8 +644,8 @@ nfs_setattr(ap)
return (EISDIR);
case VCHR:
case VBLK:
- if (vap->va_mtime.ts_sec == VNOVAL &&
- vap->va_atime.ts_sec == VNOVAL &&
+ if (vap->va_mtime.tv_sec == VNOVAL &&
+ vap->va_atime.tv_sec == VNOVAL &&
vap->va_mode == (u_short)VNOVAL &&
vap->va_uid == (uid_t)VNOVAL &&
vap->va_gid == (gid_t)VNOVAL)
@@ -671,8 +671,8 @@ nfs_setattr(ap)
np->n_size = np->n_vattr.va_size = vap->va_size;
vnode_pager_setsize(vp, (u_long)np->n_size);
};
- } else if ((vap->va_mtime.ts_sec != VNOVAL ||
- vap->va_atime.ts_sec != VNOVAL) &&
+ } else if ((vap->va_mtime.tv_sec != VNOVAL ||
+ vap->va_atime.tv_sec != VNOVAL) &&
vp->v_type == VREG &&
(error = nfs_vinvalbuf(vp, V_SAVE, ap->a_cred,
ap->a_p, 1)) == EINTR)
@@ -740,8 +740,8 @@ nfs_setattrrpc(vp, vap, cred, procp)
nfsm_build(tl, u_long *, NFSX_UNSIGNED);
*tl = nfs_false;
}
- if (vap->va_atime.ts_sec != VNOVAL) {
- if (vap->va_atime.ts_sec != time.tv_sec) {
+ if (vap->va_atime.tv_sec != VNOVAL) {
+ if (vap->va_atime.tv_sec != time.tv_sec) {
nfsm_build(tl, u_long *, 3 * NFSX_UNSIGNED);
*tl++ = txdr_unsigned(NFSV3SATTRTIME_TOCLIENT);
txdr_nfsv3time(&vap->va_atime, tl);
@@ -753,8 +753,8 @@ nfs_setattrrpc(vp, vap, cred, procp)
nfsm_build(tl, u_long *, NFSX_UNSIGNED);
*tl = txdr_unsigned(NFSV3SATTRTIME_DONTCHANGE);
}
- if (vap->va_mtime.ts_sec != VNOVAL) {
- if (vap->va_mtime.ts_sec != time.tv_sec) {
+ if (vap->va_mtime.tv_sec != VNOVAL) {
+ if (vap->va_mtime.tv_sec != time.tv_sec) {
nfsm_build(tl, u_long *, 3 * NFSX_UNSIGNED);
*tl++ = txdr_unsigned(NFSV3SATTRTIME_TOCLIENT);
txdr_nfsv3time(&vap->va_mtime, tl);
@@ -862,7 +862,7 @@ nfs_lookup(ap)
if (!error) {
if (vpid == newvp->v_id) {
if (!VOP_GETATTR(newvp, &vattr, cnp->cn_cred, cnp->cn_proc)
- && vattr.va_ctime.ts_sec == VTONFS(newvp)->n_ctime) {
+ && vattr.va_ctime.tv_sec == VTONFS(newvp)->n_ctime) {
nfsstats.lookupcache_hits++;
if (cnp->cn_nameiop != LOOKUP &&
(flags & ISLASTCN))
@@ -957,7 +957,7 @@ nfs_lookup(ap)
cnp->cn_flags |= SAVENAME;
if ((cnp->cn_flags & MAKEENTRY) &&
(cnp->cn_nameiop != DELETE || !(flags & ISLASTCN))) {
- np->n_ctime = np->n_vattr.va_ctime.ts_sec;
+ np->n_ctime = np->n_vattr.va_ctime.tv_sec;
cache_enter(dvp, newvp, cnp);
}
*vpp = newvp;
@@ -1205,7 +1205,7 @@ nfs_writerpc(vp, uiop, cred, iomode, must_commit)
} else
nfsm_loadattr(vp, (struct vattr *)0);
if (wccflag)
- VTONFS(vp)->n_mtime = VTONFS(vp)->n_vattr.va_mtime.ts_sec;
+ VTONFS(vp)->n_mtime = VTONFS(vp)->n_vattr.va_mtime.tv_sec;
m_freem(mrep);
tsiz -= len;
}
@@ -2012,7 +2012,7 @@ nfs_readdir(ap)
return (0);
}
} else if (VOP_GETATTR(vp, &vattr, ap->a_cred, uio->uio_procp) == 0 &&
- np->n_mtime == vattr.va_mtime.ts_sec) {
+ np->n_mtime == vattr.va_mtime.tv_sec) {
nfsstats.direofcache_hits++;
return (0);
}
@@ -3243,8 +3243,8 @@ nfsspec_read(ap)
* Set access flag.
*/
np->n_flag |= NACC;
- np->n_atim.ts_sec = time.tv_sec;
- np->n_atim.ts_nsec = time.tv_usec * 1000;
+ np->n_atim.tv_sec = time.tv_sec;
+ np->n_atim.tv_nsec = time.tv_usec * 1000;
return (VOCALL(spec_vnodeop_p, VOFFSET(vop_read), ap));
}
@@ -3266,8 +3266,8 @@ nfsspec_write(ap)
* Set update flag.
*/
np->n_flag |= NUPD;
- np->n_mtim.ts_sec = time.tv_sec;
- np->n_mtim.ts_nsec = time.tv_usec * 1000;
+ np->n_mtim.tv_sec = time.tv_sec;
+ np->n_mtim.tv_nsec = time.tv_usec * 1000;
return (VOCALL(spec_vnodeop_p, VOFFSET(vop_write), ap));
}
@@ -3322,8 +3322,8 @@ nfsfifo_read(ap)
* Set access flag.
*/
np->n_flag |= NACC;
- np->n_atim.ts_sec = time.tv_sec;
- np->n_atim.ts_nsec = time.tv_usec * 1000;
+ np->n_atim.tv_sec = time.tv_sec;
+ np->n_atim.tv_nsec = time.tv_usec * 1000;
return (VOCALL(fifo_vnodeop_p, VOFFSET(vop_read), ap));
}
@@ -3345,8 +3345,8 @@ nfsfifo_write(ap)
* Set update flag.
*/
np->n_flag |= NUPD;
- np->n_mtim.ts_sec = time.tv_sec;
- np->n_mtim.ts_nsec = time.tv_usec * 1000;
+ np->n_mtim.tv_sec = time.tv_sec;
+ np->n_mtim.tv_nsec = time.tv_usec * 1000;
return (VOCALL(fifo_vnodeop_p, VOFFSET(vop_write), ap));
}
@@ -3370,12 +3370,12 @@ nfsfifo_close(ap)
if (np->n_flag & (NACC | NUPD)) {
if (np->n_flag & NACC) {
- np->n_atim.ts_sec = time.tv_sec;
- np->n_atim.ts_nsec = time.tv_usec * 1000;
+ np->n_atim.tv_sec = time.tv_sec;
+ np->n_atim.tv_nsec = time.tv_usec * 1000;
}
if (np->n_flag & NUPD) {
- np->n_mtim.ts_sec = time.tv_sec;
- np->n_mtim.ts_nsec = time.tv_usec * 1000;
+ np->n_mtim.tv_sec = time.tv_sec;
+ np->n_mtim.tv_nsec = time.tv_usec * 1000;
}
np->n_flag |= NCHG;
if (vp->v_usecount == 1 &&
diff --git a/sys/nfs/nfsm_subs.h b/sys/nfs/nfsm_subs.h
index f935b7a..324df71 100644
--- a/sys/nfs/nfsm_subs.h
+++ b/sys/nfs/nfsm_subs.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93
- * $Id: nfsm_subs.h,v 1.7 1995/06/27 11:06:55 dfr Exp $
+ * $Id: nfsm_subs.h,v 1.8 1995/08/24 10:45:16 dfr Exp $
*/
#ifndef _NFS_NFSM_SUBS_H_
@@ -426,8 +426,8 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
fxdr_nfsv3time(tl, &(a)->va_atime); \
break; \
case NFSV3SATTRTIME_TOSERVER: \
- (a)->va_atime.ts_sec = time.tv_sec; \
- (a)->va_atime.ts_nsec = time.tv_usec * 1000; \
+ (a)->va_atime.tv_sec = time.tv_sec; \
+ (a)->va_atime.tv_nsec = time.tv_usec * 1000; \
break; \
}; \
nfsm_dissect(tl, u_long *, NFSX_UNSIGNED); \
@@ -437,8 +437,8 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
fxdr_nfsv3time(tl, &(a)->va_mtime); \
break; \
case NFSV3SATTRTIME_TOSERVER: \
- (a)->va_mtime.ts_sec = time.tv_sec; \
- (a)->va_mtime.ts_nsec = time.tv_usec * 1000; \
+ (a)->va_mtime.tv_sec = time.tv_sec; \
+ (a)->va_mtime.tv_nsec = time.tv_usec * 1000; \
break; \
}; }
diff --git a/sys/nfs/xdr_subs.h b/sys/nfs/xdr_subs.h
index e8c3636..26a0969 100644
--- a/sys/nfs/xdr_subs.h
+++ b/sys/nfs/xdr_subs.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)xdr_subs.h 8.1 (Berkeley) 6/10/93
- * $Id: xdr_subs.h,v 1.4 1995/01/10 13:11:42 davidg Exp $
+ * $Id: xdr_subs.h,v 1.5 1995/06/27 11:07:03 dfr Exp $
*/
#ifndef _NFS_XDR_SUBS_H_
@@ -55,27 +55,27 @@
#define txdr_unsigned(v) (htonl((long)(v)))
#define fxdr_nfsv2time(f, t) { \
- (t)->ts_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
+ (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
if (((struct nfsv2_time *)(f))->nfsv2_usec != 0xffffffff) \
- (t)->ts_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
+ (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
else \
- (t)->ts_nsec = 0; \
+ (t)->tv_nsec = 0; \
}
#define txdr_nfsv2time(f, t) { \
- ((struct nfsv2_time *)(t))->nfsv2_sec = htonl((f)->ts_sec); \
- if ((f)->ts_nsec != -1) \
- ((struct nfsv2_time *)(t))->nfsv2_usec = htonl((f)->ts_nsec / 1000); \
+ ((struct nfsv2_time *)(t))->nfsv2_sec = htonl((f)->tv_sec); \
+ if ((f)->tv_nsec != -1) \
+ ((struct nfsv2_time *)(t))->nfsv2_usec = htonl((f)->tv_nsec / 1000); \
else \
((struct nfsv2_time *)(t))->nfsv2_usec = 0xffffffff; \
}
#define fxdr_nfsv3time(f, t) { \
- (t)->ts_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
- (t)->ts_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
+ (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
+ (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
}
#define txdr_nfsv3time(f, t) { \
- ((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->ts_sec); \
- ((struct nfsv3_time *)(t))->nfsv3_nsec = htonl((f)->ts_nsec); \
+ ((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->tv_sec); \
+ ((struct nfsv3_time *)(t))->nfsv3_nsec = htonl((f)->tv_nsec); \
}
#define fxdr_hyper(f, t) { \
OpenPOWER on IntegriCloud