diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-04-18 21:22:50 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-04-18 21:22:50 +0000 |
commit | fac7875704b46f77e5a8b2871216e01b9b357401 (patch) | |
tree | 498fdfd8ba26029293f7ed1143d023fbcb14fbed /lldb/examples/python/crashlog.py | |
parent | 0aa9b453c40ec4707ebb9b7a7e2bd21919d5e470 (diff) | |
download | llvm-fac7875704b46f77e5a8b2871216e01b9b357401.zip llvm-fac7875704b46f77e5a8b2871216e01b9b357401.tar.gz llvm-fac7875704b46f77e5a8b2871216e01b9b357401.tar.bz2 |
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
This reapplies 358628 with an additional bugfix handling the case
where the destination file already exists. (Caught by the clang testsuite).
llvm-svn: 358716
Diffstat (limited to 'lldb/examples/python/crashlog.py')
0 files changed, 0 insertions, 0 deletions