Closed AkihiroSuda closed 1 year ago
For efficiency, fs.CopyFile should use clonefile(2) on macOS when VOL_CAP_INT_CLONE is available.
fs.CopyFile
clonefile(2)
VOL_CAP_INT_CLONE
man: https://github.com/apple/darwin-xnu/blob/xnu-7195.101.1/bsd/man/man2/clonefile.2
For efficiency,
fs.CopyFile
should useclonefile(2)
on macOS whenVOL_CAP_INT_CLONE
is available.man: https://github.com/apple/darwin-xnu/blob/xnu-7195.101.1/bsd/man/man2/clonefile.2