rust/library
xstaticxgpx 2232fe8da3 unix/kernel_copy.rs: copy_file_range_candidate allows empty output files
This is for https://github.com/rust-lang/rust/issues/114341

The `meta.len() > 0` condition here is intended for inputs only,
ie. when input is in the `/proc` filesystem as documented.

That inaccurately included empty output files which are then shunted to
the sendfile() routine leading to higher than nescessary IO util in some
cases, specifically with CoW filesystems like btrfs.

Further, `NoneObtained` is not relevant in this context, so remove it.

Simply, determine what is input or output given the passed enum Unit.
2023-08-03 19:27:45 -04:00
..
alloc Rollup merge of #114111 - allaboutevemirolive:add-test-case-string, r=Mark-Simulacrum 2023-07-31 22:49:51 +02:00
backtrace@e1c49fbd61 Update std to backtrace 0.3.68 2023-07-02 17:02:45 -07:00
core Auto merge of #112431 - Urgau:cast_ref_to_mut_improvments, r=Nilstrieb 2023-08-02 11:25:13 +00:00
panic_abort Remove unnecessary raw pointer in __rust_start_panic arg 2023-03-26 16:40:18 +00:00
panic_unwind Partial stabilisation of c_unwind 2023-04-29 13:01:44 +01:00
portable-simd remove repetitive words 2023-07-31 16:13:02 +08:00
proc_macro Hide ToString implementations that specialize the default ones 2023-07-24 23:37:35 +09:00
profiler_builtins
rtstartup
rustc-std-workspace-alloc Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
rustc-std-workspace-core
rustc-std-workspace-std
std unix/kernel_copy.rs: copy_file_range_candidate allows empty output files 2023-08-03 19:27:45 -04:00
stdarch@d77878b729 Bump stdarch 2023-06-13 21:45:04 -07:00
sysroot Expose compiler-builtins-weak-intrinsics feature for -Zbuild-std 2023-06-23 11:15:34 +01:00
test Rollup merge of #113717 - cuishuang:master, r=Nilstrieb 2023-07-31 22:49:47 +02:00
unwind support for mips32r6 as a target_arch value 2023-07-18 18:58:18 +08:00