Diffusion KIO f3b0f220a78d

Fill UDSEntry::UDS_CREATION_TIME under linux when glibc >= 2.28

Authored by meven on Apr 13 2019, 1:30 PM.

Description

Fill UDSEntry::UDS_CREATION_TIME under linux when glibc >= 2.28

Summary:
The birthtime can be retrieved using using the statx function, available since glibc 2.28. In case the kernel lacks support for the underlying syscall, glibc falls back to stat internally. The validity of the btime field is indicated in the mask field, e.g. when the kernel or the filesystem lacks support for btime.
For details, see http://man7.org/linux/man-pages/man2/statx.2.html

In dolphin, the creation time column is now filled in linux :

FEATURE: 381367
FIXED-IN: 5.58

Test Plan:
Tested using kioslavetest and local build of dolphin.
Tested without HAVE_STATX under linux.

Reviewers: Frameworks, dfaure, fvogt, bruns, broulik

Reviewed By: fvogt, bruns

Subscribers: anthonyfieroni, pino, bcooksley, ngraham, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D20096

Details

Committed
mevenApr 13 2019, 1:30 PM
Reviewer
fvogt
Differential Revision
D20096: Fill UDSEntry::UDS_CREATION_TIME under linux when glibc >= 2.28
Parents
R241:4d7ebf7136fe: GIT_SILENT Upgrade KF5 version to 5.58.0.
Branches
Unknown
Tags
Unknown