Skip to content

Metadata::created() not working on Linux with statx #59743

Closed
@oxalica

Description

@oxalica

First of all, it now returns an Err with "not available on this platform currently".
But I found that there is a system call statx available in Linux kernel 4.11, which can get the birth time.

As the doc, the function uses stat on Unix platforms. But the stat result just never contains birthtime.

Shouldn't it try statx when available?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.O-linuxOperating system: LinuxT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions