commit | c7cadf83fffba81e2663deb3c0587d08b5a68c9f | [log] [tgz] |
---|---|---|
author | Adrian Prantl <aprantl@apple.com> | Thu Apr 18 00:01:05 2019 +0000 |
committer | Adrian Prantl <aprantl@apple.com> | Thu Apr 18 00:01:05 2019 +0000 |
tree | 64e7980c687a2352779a72ef9c71886ac1bd6f43 | |
parent | 42af05bfbc1ba0b01f75f5699b9b8447b745bb30 [diff] |
Implement sys::fs::copy_file using the macOS copyfile(3) API to support APFS clones. This patch adds a Darwin-specific implementation of llvm::sys::fs::copy_file() that uses the macOS copyfile(3) API to support APFS copy-on-write clones, which should be faster and much more space efficient. https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/APFS_Guide/ToolsandAPIs/ToolsandAPIs.html Differential Revision: https://reviews.llvm.org/D60802 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358628 91177308-0d34-0410-b5e6-96231b3b80d8