mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
065dd231dd
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
16 lines
295 B
Go
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
|
|
}
|