diff --git a/src/uu/cp/src/platform/linux.rs b/src/uu/cp/src/platform/linux.rs index 9e556b22440..ff304301aea 100644 --- a/src/uu/cp/src/platform/linux.rs +++ b/src/uu/cp/src/platform/linux.rs @@ -31,10 +31,8 @@ where { let mut src = open_source(source, source_nofollow)?; let mut dst = create_dest_restrictive(dest, false)?; - if ioctl_ficlone(&dst, &src).is_err() { - // faster than io::copy's copy_file_range and sendfile - buf_copy::copy_stream(&mut src, &mut dst)?; - } + // remove copy_file_range from io::copy for proper --reflink=never support + buf_copy::copy_stream(&mut src, &mut dst)?; Ok(()) }