New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cp: provide --reflink on macOS #1773
Comments
I'm in the process of adding clonefile() to libc: rust-lang/libc#2147. |
clonefile() was added in macOS 10.12. Do we want to maintain compatibility with pre-10.12? I'm prototyping something with |
That's a great question (lolsob). According to https://users.rust-lang.org/t/compile-rust-binary-for-older-versions-of-mac-osx/38695/3 Rust goes down to 10.7, but the policy might be different on uutils. |
Thanks. I'll stick to the |
cp: add --reflink support to macos, fixes #1773
macOS has a similar file-cloning mechanic since APFS became a thing. An implementation for GNU Coreutils is at Artoria2e5/coreutils@e25bfa5.
Note that Apple in its infinite wisdom provides a syscall that takes the filename instead of the ioctl-on-fd approach that Linux and to an extent Windows ReFS uses. This... might make the code a bit messier and even racier.
The text was updated successfully, but these errors were encountered: