-
Notifications
You must be signed in to change notification settings - Fork 14k
std: sys: fs: uefi: Implement stat #148970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ayush1325
commented
Nov 15, 2025
- Implement std::fs::metadata function.
- Tested on qemu ovmf
|
r? @ChrisDenton rustbot has assigned @ChrisDenton. Use |
|
@rustbot label +O-UEFI |
library/std/src/sys/fs/uefi.rs
Outdated
| crate::ptr::null_mut(), | ||
| ) | ||
| }; | ||
| assert_eq!(r, r_efi::efi::Status::BUFFER_TOO_SMALL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
Reminder, once the PR becomes ready for a review, use |
- Implement std::fs::metadata function. - Tested on qemu ovmf Signed-off-by: Ayush Singh <[email protected]>
cab6d68 to
6106760
Compare
|
@rustbot ready |
|
@bors r+ |
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
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