Date: Sun, 14 Jun 2020 11:41:57 +0000 (UTC) From: Doug Rabson <dfr@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r362175 - head/sys/fs/nfs Message-ID: <202006141141.05EBfvBF090633@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dfr Date: Sun Jun 14 11:41:57 2020 New Revision: 362175 URL: https://svnweb.freebsd.org/changeset/base/362175 Log: Add support for the timecreate attribute This maps to the va_birthtime VFS attribute. Modified: head/sys/fs/nfs/nfs_commonsubs.c Modified: head/sys/fs/nfs/nfs_commonsubs.c ============================================================================== --- head/sys/fs/nfs/nfs_commonsubs.c Sun Jun 14 10:13:40 2020 (r362174) +++ head/sys/fs/nfs/nfs_commonsubs.c Sun Jun 14 11:41:57 2020 (r362175) @@ -2922,6 +2922,11 @@ nfsv4_fillattr(struct nfsrv_descript *nd, struct mount 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006141141.05EBfvBF090633>