1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/archive
Derek McGowan d99f4cc83d Fix overlay2 ignoring whiteout files
Currently when overlay creates a whiteout file then the overlay2 layer is archived,
the correct tar header will be created for the whiteout file, but the tar logic will then attempt to open the file causing a failure.
When tar encounters such failures the file is skipped and excluded for the archive, causing the whiteout to be ignored.
By skipping the copy of empty files, no open attempt will be made on whiteout files.

Fixes #23863

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
(cherry picked from commit bd13c53f8d)
2016-06-30 16:47:46 -07:00
..
testdata
archive.go Fix overlay2 ignoring whiteout files 2016-06-30 16:47:46 -07:00
archive_linux.go Fix overlay2 ignoring whiteout files 2016-06-30 16:47:46 -07:00
archive_other.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
archive_test.go fix typos 2016-06-02 17:17:22 +08:00
archive_unix.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
archive_unix_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
archive_windows.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
archive_windows_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
changes.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
changes_linux.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
changes_other.go
changes_posix_test.go
changes_test.go fix typos 2016-06-02 17:17:22 +08:00
changes_unix.go Fixes #9283. Consider hardlinks in image size. 2015-10-17 12:24:05 +02:00
changes_windows.go Fixes #9283. Consider hardlinks in image size. 2015-10-17 12:24:05 +02:00
copy.go Add '-L' option for cp 2015-11-21 00:36:56 +08:00
copy_unix.go
copy_unix_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
copy_windows.go
diff.go Fix opq whiteouts problems for files with dot prefix 2015-11-08 23:00:01 -08:00
diff_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
example_changes.go
README.md
time_linux.go
time_unsupported.go
utils_test.go
whiteouts.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
wrap.go
wrap_test.go

This code provides helper functions for dealing with archive files.