moby--moby/graphdriver
Alexander Larsson f198ee525a Properly close archives
All archive that are created from somewhere generally have to be closed, because
at some point there is a file or a pipe or something that backs them. So, we
make archive.Archive a ReadCloser. However, code consuming archives does not
typically close them so we add an archive.ArchiveReader and use that when we're
only reading.

We then change all the Tar/Archive places to create ReadClosers, and to properly
close them everywhere.

As an added bonus we can use ReadCloserWrapper rather than EofReader in several places,
which is good as EofReader doesn't always work right. For instance, many compression
schemes like gzip knows it is EOF before having read the EOF from the stream, so the
EofCloser never sees an EOF.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
2014-02-14 13:46:17 +01:00
..
aufs Properly close archives 2014-02-14 13:46:17 +01:00
btrfs Merge pull request #3893 from tianon/clean-up-btrfs-error-messages 2014-02-03 09:51:41 -08:00
devmapper Merge pull request #4062 from alexlarsson/clean-shutdown 2014-02-13 10:45:03 -08:00
vfs Add Put() to graphdriver API and use it 2014-01-21 11:25:37 +01:00
driver.go Properly close archives 2014-02-14 13:46:17 +01:00