Skip to content

Add direct unpack support for overlay#3528

Merged
crosbymichael merged 3 commits intocontainerd:masterfrom
dmcgowan:overlay-direct-unpack
Aug 19, 2019
Merged

Add direct unpack support for overlay#3528
crosbymichael merged 3 commits intocontainerd:masterfrom
dmcgowan:overlay-direct-unpack

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

Allows unpacking an overlay filesystem without needing to first perform a mount. This is an optimization when using the overlay snapshotter (aufs snapshotter also supported). Handles missing parent directories in tars through doing a directory copy up rather than a simple mkdirall. Unified Windows parent layer functionality to have a single apply options structure for all platforms.

Creating as draft until I figure out what tests should be added for this case.

@dmcgowan dmcgowan added this to the 1.3 milestone Aug 13, 2019
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 13, 2019

Build succeeded.

@dmcgowan dmcgowan force-pushed the overlay-direct-unpack branch from d5c005b to cb355b5 Compare August 13, 2019 22:06
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 13, 2019

Build succeeded.

@dmcgowan dmcgowan force-pushed the overlay-direct-unpack branch 2 times, most recently from 780bfe2 to 6ec9330 Compare August 13, 2019 23:00
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 13, 2019

Build succeeded.

Signed-off-by: Lantao Liu <lantaol@google.com>
@dmcgowan dmcgowan force-pushed the overlay-direct-unpack branch from 6ec9330 to cd9c404 Compare August 15, 2019 19:19
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 15, 2019

Build succeeded.

@dmcgowan dmcgowan force-pushed the overlay-direct-unpack branch from cd9c404 to b211cc7 Compare August 16, 2019 18:12
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 16, 2019

Build succeeded.

Pulls in copy and fstest changes

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
@dmcgowan dmcgowan force-pushed the overlay-direct-unpack branch from b211cc7 to bcc4a14 Compare August 16, 2019 22:52
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 16, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3528 into master will decrease coverage by 0.04%.
The diff coverage is 41.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3528      +/-   ##
==========================================
- Coverage   44.94%   44.89%   -0.05%     
==========================================
  Files         115      118       +3     
  Lines       12790    12991     +201     
==========================================
+ Hits         5748     5832      +84     
- Misses       6170     6274     +104     
- Partials      872      885      +13
Flag Coverage Δ
#linux 48.66% <47.22%> (-0.12%) ⬇️
#windows 40.18% <18.51%> (-0.01%) ⬇️
Impacted Files Coverage Δ
diff/apply/apply.go 0% <0%> (ø)
archive/tar_windows.go 8.19% <0%> (-0.69%) ⬇️
archive/tar_opts_windows.go 0% <0%> (ø) ⬆️
archive/tar_unix.go 42.42% <21.05%> (-16.67%) ⬇️
archive/tar.go 47.95% <43.1%> (+4.16%) ⬆️
diff/apply/apply_linux.go 49.25% <49.25%> (ø)
archive/tar_opts_linux.go 57.14% <57.14%> (ø)
archive/tar_opts.go 58.82% <80%> (+30.25%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c62b744...bcc4a14. Read the comment docs.

@dmcgowan dmcgowan marked this pull request as ready for review August 16, 2019 23:26
@dmcgowan
Copy link
Copy Markdown
Member Author

Added overlay specific tests including ones to cover the case of copying up parent directory permission when excluded from tars. This is ready for review.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants