Birthtime handling in ZFS
Phil Stone
phil.stone at gmx.com
Sun Dec 2 23:27:11 UTC 2012
I'm using 8.3-RELEASE-p5
It seems that st_birthtime returned by lstat(2) on a zfs file always equals ctime instead of birthtime.
Looking at /base/stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Function zfs_getattr()
Line 2682 :
SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CTIME(zfsvfs), NULL, &crtime, 16);
Shouldn't it be :
SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CRTIME(zfsvfs), NULL, &crtime, 16);
instead ?
Same in stable/9 and head.
Thanks in advance for your help.
Phil
More information about the freebsd-fs
mailing list