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> Upstream-commit: d2b71b26604370620630d8d3f35aba75ae474f3f Component: engine
10 lines
193 B
Go
10 lines
193 B
Go
// +build linux
|
|
|
|
package vfs
|
|
|
|
import "github.com/docker/docker/daemon/graphdriver/copy"
|
|
|
|
func dirCopy(srcDir, dstDir string) error {
|
|
return copy.DirCopy(srcDir, dstDir, copy.Content, false)
|
|
}
|