Use SA_ZPL_CRTIME instead of SA_ZPL_CTIME for creation time.

Submitted by:	phil.stone at gmx.com
MFC after:	2 weeks
This commit is contained in:
Xin LI 2012-12-03 04:25:37 +00:00
parent 67897cfb90
commit 2740382ebd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243807

View File

@ -2679,7 +2679,7 @@ zfs_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr,
SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MTIME(zfsvfs), NULL, &mtime, 16);
SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CTIME(zfsvfs), NULL, &ctime, 16);
SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CTIME(zfsvfs), NULL, &crtime, 16);
SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CRTIME(zfsvfs), NULL, &crtime, 16);
if (vp->v_type == VBLK || vp->v_type == VCHR)
SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_RDEV(zfsvfs), NULL,
&rdev, 8);