1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

cp: default to --reflink=auto on linux and macos

This commit is contained in:
Michael Debertol 2021-06-19 17:49:41 +02:00
parent 9fb927aa85
commit 076c7fa501

View file

@ -667,7 +667,14 @@ impl Options {
} }
} }
} else { } else {
ReflinkMode::Never #[cfg(any(target_os = "linux", target_os = "macos"))]
{
ReflinkMode::Auto
}
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
{
ReflinkMode::Never
}
} }
}, },
backup: backup_mode, backup: backup_mode,