Tracking Issue for `Metadata::from_statx` in `std::os::linux::fs::MetadataExt`
Open
Nobody has claimed this yet.
C-tracking-issue
S-tracking-unimplemented
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Feature gate: #![feature(metadata_statx)]
This is a tracking issue for adding a constructor that constructs a std::fs::Metadata struct from a *const c_void pointer populated by the statx syscall.
Public API
// use std::os::linux::fs::MetadataExt;
pub const STATX_MASK: c_int;
impl MetadataExt for Metadata {
unsafe fn from_statx(statxbuf: *const c_void) -> Metadata { ... }
}
Note: definition of this function is subject to change.
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP: rust-lang/libs-team#761
- Implementation: #156269
- Final comment period (FCP)^1
- Stabilization PR
Unresolved Questions
- Ensure we're happy with the guarantees this asks from Linux, see https://github.com/rust-lang/rust/pull/156269#issuecomment-4781948338 and https://github.com/rust-lang/rust/pull/156269#discussion_r3368595954. We may want to get an explicit guarantee from at least the mailing list (unclear as of writing if that has been asked for yet).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read implementation PR #156269 and the public MetadataExt::from_statx API, then review the linked discussion about Linux guarantees. Done means the implementation and its guarantees are settled and the issue can proceed through final comment period and stabilization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100