mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use direct filesystem access for tar-split on aufs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
0fae65e228
commit
0641429ad8
1 changed files with 6 additions and 0 deletions
|
@ -367,6 +367,12 @@ func (a *Driver) Diff(id, parent string) (archive.Archive, error) {
|
|||
})
|
||||
}
|
||||
|
||||
// DiffPath returns path to the directory that contains files for the layer
|
||||
// differences. Used for direct access for tar-split.
|
||||
func (a *Driver) DiffPath(id string) (string, func() error, error) {
|
||||
return path.Join(a.rootPath(), "diff", id), func() error { return nil }, nil
|
||||
}
|
||||
|
||||
func (a *Driver) applyDiff(id string, diff archive.Reader) error {
|
||||
dir := path.Join(a.rootPath(), "diff", id)
|
||||
if err := chrootarchive.UntarUncompressed(diff, dir, &archive.TarOptions{
|
||||
|
|
Loading…
Reference in a new issue