moby/reflink_copy_unsupported.go
2014-01-31 03:16:42 -07:00

16 lines
295 B
Go

// +build !linux !amd64
package docker
import (
"io"
"os"
)
func CopyFile(dstFile, srcFile *os.File) error {
// No BTRFS reflink suppport, Fall back to normal copy
// FIXME: Check the return of Copy and compare with dstFile.Stat().Size
_, err := io.Copy(dstFile, srcFile)
return err
}