D5138: Fill UDS_CREATION_TIME with the value of st_birthtime on FreeBSD
Adriaan de Groot
noreply at phabricator.kde.org
Thu Mar 23 10:28:24 UTC 2017
adridg added a comment.
Might want to add a comment about "this is the actual inode creation time; support depends on the underlying filesystem (e.g. UFS and ZFS have this information, NFS doesn't)", and change the comment about buff.st_ctime and KDE 2.0.
In addition, please insert the creation time information only if buff.st_birthtime is useful. On an FS that doesn't support the information, you'll get 0; but time_t is (on FreeBSD x86 anyway) signed, so 0 or < 0 are in theory legitimate timestamps; for simplicity probably use only positive timestamps.
On Linux (replying to DFaure), ext4 supports birthtime (crtime), but stat(2) doesn't have a way to report that information; I'll dig into GNU coreutils a little (e.g. 20 minutes, tops) to see how they get at, and report, the information.
REPOSITORY
R241 KIO
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D5138
To: tcberner, arrowdodger, rakuco, dfaure, adridg
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170323/4077e794/attachment.html>
More information about the Kde-frameworks-devel
mailing list