From 3900c11481512be5a5461c005eafeb94e9c82646 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sun, 14 Jun 2020 11:41:57 +0000 Subject: [PATCH] Add support for the timecreate attribute This maps to the va_birthtime VFS attribute. --- sys/fs/nfs/nfs_commonsubs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c index 802506ac96eb..a113e5009302 100644 --- a/sys/fs/nfs/nfs_commonsubs.c +++ b/sys/fs/nfs/nfs_commonsubs.c @@ -2922,6 +2922,11 @@ nfsv4_fillattr(struct nfsrv_descript *nd, struct mount *mp, vnode_t vp, txdr_nfsv4time(&vap->va_mtime, tl); retnum += NFSX_V4TIME; break; + case NFSATTRBIT_TIMECREATE: + NFSM_BUILD(tl, u_int32_t *, NFSX_V4TIME); + txdr_nfsv4time(&vap->va_birthtime, tl); + retnum += NFSX_V4TIME; + break; case NFSATTRBIT_TIMEMODIFYSET: if ((vap->va_vaflags & VA_UTIMES_NULL) == 0) { NFSM_BUILD(tl, u_int32_t *, NFSX_V4SETTIME);