Add support for the timecreate attribute
This maps to the va_birthtime VFS attribute.
This commit is contained in:
parent
7f3d93b55b
commit
3900c11481
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362175
@ -2922,6 +2922,11 @@ nfsv4_fillattr(struct nfsrv_descript *nd, struct mount *mp, vnode_t vp,
|
|||||||
txdr_nfsv4time(&vap->va_mtime, tl);
|
txdr_nfsv4time(&vap->va_mtime, tl);
|
||||||
retnum += NFSX_V4TIME;
|
retnum += NFSX_V4TIME;
|
||||||
break;
|
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:
|
case NFSATTRBIT_TIMEMODIFYSET:
|
||||||
if ((vap->va_vaflags & VA_UTIMES_NULL) == 0) {
|
if ((vap->va_vaflags & VA_UTIMES_NULL) == 0) {
|
||||||
NFSM_BUILD(tl, u_int32_t *, NFSX_V4SETTIME);
|
NFSM_BUILD(tl, u_int32_t *, NFSX_V4SETTIME);
|
||||||
|
Loading…
Reference in New Issue
Block a user