]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
xattr-util: use crtime/btime if statx() is available for implementation of fd_setcrti... 8222/head
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Feb 2018 11:48:33 +0000 (12:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Feb 2018 14:41:49 +0000 (15:41 +0100)
commit4c2e1b399f5809f3ccad45fffd23d208ad9e8fa9
tree646395587e23c77aea9c56db834d117b38d80af5
parent1133dea477b461a4ceaa8f9ceb58f536edccd8ec
xattr-util: use crtime/btime if statx() is available for implementation of fd_setcrtime() and friends

The Linux kernel exposes the birth time now for files through statx()
hence make use of it where available. We keep the xattr logic in place
for this however, since only a subset of file systems on Linux currently
expose the birth time. NFS and tmpfs for example do not support it. OTOH
there are other file systems that do support the birth time but might
not support xattrs (smb…), hence make the best of the two, in particular
in order to deal with journal files copied between file system types and
to maintain compatibility with older file systems that are updated to
newer version of the file system.
meson.build
src/basic/missing.h
src/basic/missing_syscall.h
src/basic/xattr-util.c
src/journal/journal-file.c
src/test/test-xattr-util.c