2014-01-31 05:16:42 -05:00
|
|
|
// +build !linux !amd64
|
|
|
|
|
2013-11-27 22:23:48 -05:00
|
|
|
package docker
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
2014-01-07 00:14:35 -05:00
|
|
|
"os"
|
2013-11-27 22:23:48 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|