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:
parent
9fb927aa85
commit
076c7fa501
1 changed files with 8 additions and 1 deletions
|
@ -667,8 +667,15 @@ impl Options {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
#[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_suffix,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue