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,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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue