mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
d2b71b2660
This change makes the VFS graphdriver use the kernel-accelerated (copy_file_range) mechanism of copying files, which is able to leverage reflinks. Signed-off-by: Sargun Dhillon <sargun@sargun.me>
9 lines
197 B
Go
9 lines
197 B
Go
// +build !linux
|
|
|
|
package vfs
|
|
|
|
import "github.com/docker/docker/pkg/chrootarchive"
|
|
|
|
func dirCopy(srcDir, dstDir string) error {
|
|
return chrootarchive.NewArchiver(nil).CopyWithTar(srcDir, dstDir)
|
|
}
|