Skip to content

Commit 4ea3e90

Browse files
authored
Rollup merge of #150953 - uefi-fs-copy, r=joboet
std: sys: fs: uefi: Implement copy - Using the implementation from sys::fs::common since ther is no built-in copy implementation in UEFI. - Tested with OVMF on QEMU. @rustbot label +O-UEFI
2 parents d6621f0 + bd8c67c commit 4ea3e90

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

library/std/src/sys/fs/uefi.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::fs::TryLockError;
66
use crate::hash::Hash;
77
use crate::io::{self, BorrowedCursor, IoSlice, IoSliceMut, SeekFrom};
88
use crate::path::{Path, PathBuf};
9-
pub use crate::sys::fs::common::{Dir, remove_dir_all};
9+
pub use crate::sys::fs::common::{Dir, copy, remove_dir_all};
1010
use crate::sys::pal::{helpers, unsupported};
1111
use crate::sys::time::SystemTime;
1212

@@ -541,10 +541,6 @@ pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {
541541
crate::path::absolute(p)
542542
}
543543

544-
pub fn copy(_from: &Path, _to: &Path) -> io::Result<u64> {
545-
unsupported()
546-
}
547-
548544
fn set_perm_inner(f: &uefi_fs::File, perm: FilePermissions) -> io::Result<()> {
549545
let mut file_info = f.file_info()?;
550546

0 commit comments

Comments
 (0)