rust-lang / rust-lang/rust

Tracking Issue for `Metadata::from_statx` in `std::os::linux::fs::MetadataExt`

Open
#156,268 0 comments 0 reactions 0 assignees View on GitHub

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.