1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/graphdriver
Alexander Larsson 242fd4b3ef dummy driver: Use cp --reflink=auto to copy directories
On systems that supports reflinking (i.e. btrfs) this means the dummy
backend is much faster at copying files and will be sharing file data in
a CoW fashion.

On my (btrfs) system this makes "docker run ubuntu echo hello world" go
from about 3 seconds to about 1 second. Not instant, but clearly better.

cp --reflink=auto is availible since coreutils 7.5 (around 2009), so this
seems pretty ok to rely on.

cp is also better at preserving file metadata than tar, so for instance
it will copy xattrs.
2013-11-19 13:09:36 +01:00
..
aufs Move all drivers to the same subdir graphdriver 2013-11-15 15:48:24 -08:00
devmapper Move all drivers to the same subdir graphdriver 2013-11-15 15:48:24 -08:00
dummy dummy driver: Use cp --reflink=auto to copy directories 2013-11-19 13:09:36 +01:00
driver.go Merge pull request #33 from alexlarsson/dm-plugin-status 2013-11-15 10:15:59 -08:00