Date: Mon, 03 Dec 2012 00:20:28 +0100 From: "Phil Stone" <phil.stone@gmx.com> To: freebsd-fs@freebsd.org Subject: Birthtime handling in ZFS Message-ID: <20121202232028.292620@gmx.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121202232028.292620>