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

layer: remove metadata store interface #36504

Merged

Conversation

dmcgowan
Copy link
Member

@dmcgowan dmcgowan commented Mar 6, 2018

Layer metadata storage has not been implemented outside of the layer store and will be deprecated by containerd metadata storage. To prepare for this and freeze the current metadata storage, remove the exported interface and make it internal to the layer store.

Note: the original intent of exposing this interface was to make it possible in the future to use a transactional datastore rather than rely on keeping files on disk in sync. This ended up being achieved in containerd, which does not make use of this interface. This refactoring will also help in transitioning graph drivers to snapshotters by allowing shared functionality (e.g. diff, mount) to be pulled up into the layer store (without making confusing interface changes) before moving to containerd.

Layer metadata storage has not been implemented outside of the layer
store and will be deprecated by containerd metadata storage. To prepare
for this and freeze the current metadata storage, remove the exported
interface and make it internal to the layer store.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
@thaJeztah
Copy link
Member

thaJeztah commented Mar 6, 2018

ping @tonistiigi @dnephin PTAL

Copy link
Member

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@vieux vieux left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Mar 10, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@f0694e9). Click here to learn what that means.
The diff coverage is 66.66%.

@@            Coverage Diff            @@
##             master   #36504   +/-   ##
=========================================
  Coverage          ?   34.67%           
=========================================
  Files             ?      613           
  Lines             ?    45405           
  Branches          ?        0           
=========================================
  Hits              ?    15742           
  Misses            ?    27604           
  Partials          ?     2059

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit b9cc5cb into moby:master Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants