Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlay: implement DiffGetter #631

Merged
merged 2 commits into from
May 20, 2020
Merged

Conversation

giuseppe
Copy link
Member

if the DiffGetter interface is provided, the layer store doesn't need
to mount the layer to access the files for tar-split.

Signed-off-by: Giuseppe Scrivano [email protected]

@giuseppe
Copy link
Member Author

It is needed for: containers/buildah#2359

@rhatdan
Copy link
Member

rhatdan commented May 19, 2020

What about the other drivers? Don't they at least need the interface?

@giuseppe
Copy link
Member Author

What about the other drivers? Don't they at least need the interface?

it must be customized for each driver, at the moment only aufs has the interface. I am not sure it is even possible for all the remaining drivers to access a file without mounting the layer.

if the DiffGetter interface is provided, the layer store doesn't need
to mount the layer to access the files for tar-split.

Signed-off-by: Giuseppe Scrivano <[email protected]>
if the DiffGetter interface is provided, the layer store doesn't need
to mount the layer to access the files for tar-split.

Signed-off-by: Giuseppe Scrivano <[email protected]>
Copy link
Member

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

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

LGTM

@rhatdan
Copy link
Member

rhatdan commented May 19, 2020

@TomSweeneyRedHat
Copy link
Member

LGTM, but would like someone with more storage chops than I to do a head nod too.

@nalind
Copy link
Member

nalind commented May 19, 2020

LGTM. The implementations for overlay and vfs mirror the aufs one, which uses a layout for its diffs that is similar to overlay's.

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

LGTM, too

@rhatdan rhatdan merged commit b7a850e into containers:master May 20, 2020
@giuseppe giuseppe deleted the overlay-getter branch May 21, 2020 06:29
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