std: sys: fs: uefi: Implement stat#148970
Merged
bors merged 1 commit intorust-lang:mainfrom Nov 18, 2025
Merged
Conversation
Contributor
Ayush1325
commented
Nov 15, 2025
- Implement std::fs::metadata function.
- Tested on qemu ovmf
Collaborator
|
r? @ChrisDenton rustbot has assigned @ChrisDenton. Use |
Contributor
Author
|
@rustbot label +O-UEFI |
joboet
requested changes
Nov 18, 2025
library/std/src/sys/fs/uefi.rs
Outdated
| crate::ptr::null_mut(), | ||
| ) | ||
| }; | ||
| assert_eq!(r, r_efi::efi::Status::BUFFER_TOO_SMALL); |
Member
There was a problem hiding this comment.
I think an assert is too strong here – maybe there was a device error that is reported here? I'd assert that the result is not OK and return any errors other than BUFFER_TOO_SMALL to the user.
Collaborator
|
Reminder, once the PR becomes ready for a review, use |
- Implement std::fs::metadata function. - Tested on qemu ovmf Signed-off-by: Ayush Singh <ayush@beagleboard.org>
cab6d68 to
6106760
Compare
Contributor
Author
|
@rustbot ready |
Member
|
@bors r+ |
Collaborator
bors
added a commit
that referenced
this pull request
Nov 18, 2025
Rollup of 4 pull requests Successful merges: - #148970 (std: sys: fs: uefi: Implement stat) - #149020 (flush_delayed: add note about stashed diagnostics) - #149026 (Add test for href of reexported enum variant) - #149049 (compiletest: Use JSON "binary-format" to decide `//@ only-elf` and `//@ ignore-elf`) r? `@ghost` `@rustbot` modify labels: rollup
rust-timer
added a commit
that referenced
this pull request
Nov 18, 2025
Rollup merge of #148970 - Ayush1325:uefi-fs-stat, r=joboet std: sys: fs: uefi: Implement stat - Implement std::fs::metadata function. - Tested on qemu ovmf
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Nov 20, 2025
…sDenton std: sys: fs: uefi: Fix FileAttr size - The underlying file size is represented by file_size field. The size field is just the size of structure since it is a C DST. - Fixes bug created in rust-lang#148970 `@rustbot` label +O-UEFI
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Nov 20, 2025
…sDenton std: sys: fs: uefi: Fix FileAttr size - The underlying file size is represented by file_size field. The size field is just the size of structure since it is a C DST. - Fixes bug created in rust-lang#148970 ``@rustbot`` label +O-UEFI
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Nov 30, 2025
std: sys: fs: uefi: Implement stat - Implement std::fs::metadata function. - Tested on qemu ovmf
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Nov 30, 2025
…llaumeGomez Rollup of 4 pull requests Successful merges: - rust-lang#148970 (std: sys: fs: uefi: Implement stat) - rust-lang#149020 (flush_delayed: add note about stashed diagnostics) - rust-lang#149026 (Add test for href of reexported enum variant) - rust-lang#149049 (compiletest: Use JSON "binary-format" to decide `//@ only-elf` and `//@ ignore-elf`) r? `@ghost` `@rustbot` modify labels: rollup
makai410
pushed a commit
to makai410/rustc_public
that referenced
this pull request
Dec 10, 2025
Rollup of 4 pull requests Successful merges: - rust-lang/rust#148970 (std: sys: fs: uefi: Implement stat) - rust-lang/rust#149020 (flush_delayed: add note about stashed diagnostics) - rust-lang/rust#149026 (Add test for href of reexported enum variant) - rust-lang/rust#149049 (compiletest: Use JSON "binary-format" to decide `//@ only-elf` and `//@ ignore-elf`) r? `@ghost` `@rustbot` modify labels: rollup
makai410
pushed a commit
to makai410/rust
that referenced
this pull request
Dec 10, 2025
…llaumeGomez Rollup of 4 pull requests Successful merges: - rust-lang#148970 (std: sys: fs: uefi: Implement stat) - rust-lang#149020 (flush_delayed: add note about stashed diagnostics) - rust-lang#149026 (Add test for href of reexported enum variant) - rust-lang#149049 (compiletest: Use JSON "binary-format" to decide `//@ only-elf` and `//@ ignore-elf`) r? `@ghost` `@rustbot` modify labels: rollup
Kobzol
pushed a commit
to Kobzol/rustc_codegen_cranelift
that referenced
this pull request
Dec 29, 2025
Rollup of 4 pull requests Successful merges: - rust-lang/rust#148970 (std: sys: fs: uefi: Implement stat) - rust-lang/rust#149020 (flush_delayed: add note about stashed diagnostics) - rust-lang/rust#149026 (Add test for href of reexported enum variant) - rust-lang/rust#149049 (compiletest: Use JSON "binary-format" to decide `//@ only-elf` and `//@ ignore-elf`) r? `@ghost` `@rustbot` modify labels: rollup
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Jan 17, 2026
…sDenton std: sys: fs: uefi: Fix FileAttr size - The underlying file size is represented by file_size field. The size field is just the size of structure since it is a C DST. - Fixes bug created in rust-lang#148970 ``@rustbot`` label +O-UEFI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.