diff options
Diffstat (limited to 'sys/nfs4client')
-rw-r--r-- | sys/nfs4client/nfs4_subs.c | 9 | ||||
-rw-r--r-- | sys/nfs4client/nfs4_vn_subs.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/sys/nfs4client/nfs4_subs.c b/sys/nfs4client/nfs4_subs.c index 739e39f..a08240a 100644 --- a/sys/nfs4client/nfs4_subs.c +++ b/sys/nfs4client/nfs4_subs.c @@ -129,8 +129,10 @@ nfsm_v4init(void) FA4_SET(FA4_OWNER, __getattr_bm); FA4_SET(FA4_OWNER_GROUP, __getattr_bm); FA4_SET(FA4_FILEID, __getattr_bm); - FA4_SET(FA4_TIME_MODIFY, __getattr_bm); FA4_SET(FA4_TIME_ACCESS, __getattr_bm); + FA4_SET(FA4_TIME_CREATE, __getattr_bm); + FA4_SET(FA4_TIME_METADATA, __getattr_bm); + FA4_SET(FA4_TIME_MODIFY, __getattr_bm); FA4_SET(FA4_TYPE, __readdir_bm); FA4_SET(FA4_FSID, __readdir_bm); @@ -1343,6 +1345,11 @@ nfsm_v4dissect_attrs_xx(struct nfsv4_fattr *fa, struct mbuf **md, caddr_t *dpos) len += 3 * NFSX_UNSIGNED; } if (FA4_ISSET(FA4_TIME_CREATE, bmval)) { + NFSM_MTOTIME(fa->fa4_btime); + fa->fa4_valid |= FA4V_BTIME; + len += 3 * NFSX_UNSIGNED; + } + if (FA4_ISSET(FA4_TIME_METADATA, bmval)) { NFSM_MTOTIME(fa->fa4_ctime); fa->fa4_valid |= FA4V_CTIME; len += 3 * NFSX_UNSIGNED; diff --git a/sys/nfs4client/nfs4_vn_subs.c b/sys/nfs4client/nfs4_vn_subs.c index bd42d5e..317c7ff 100644 --- a/sys/nfs4client/nfs4_vn_subs.c +++ b/sys/nfs4client/nfs4_vn_subs.c @@ -121,6 +121,8 @@ nfs4_vnop_loadattrcache(struct vnode *vp, struct nfsv4_fattr *fap, vap->va_fileid = nfs_v4fileid4_to_fileid(fap->fa4_fileid); if (fap->fa4_valid & FA4V_ATIME) vap->va_atime = fap->fa4_atime; + if (fap->fa4_valid & FA4V_BTIME) + vap->va_birthtime = fap->fa4_btime; if (fap->fa4_valid & FA4V_CTIME) vap->va_ctime = fap->fa4_ctime; vap->va_flags = 0; |