1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +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,8 +667,15 @@ impl Options {
} }
} }
} else { } else {
#[cfg(any(target_os = "linux", target_os = "macos"))]
{
ReflinkMode::Auto
}
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
{
ReflinkMode::Never ReflinkMode::Never
} }
}
}, },
backup: backup_mode, backup: backup_mode,
backup_suffix, backup_suffix,