reflink_copy_darwin.go 270 B

1234567891011121314
  1. package docker
  2. import (
  3. "io"
  4. "os"
  5. )
  6. func CopyFile(dstFile, srcFile *os.File) error {
  7. // No BTRFS reflink suppport, Fall back to normal copy
  8. // FIXME: Check the return of Copy and compare with dstFile.Stat().Size
  9. _, err := io.Copy(dstFile, srcFile)
  10. return err
  11. }