Skip to content

layer: remove metadata store interface#36504

Merged
thaJeztah merged 1 commit into
moby:masterfrom
dmcgowan:layer-store-remove-metastore-interface
Mar 10, 2018
Merged

layer: remove metadata store interface#36504
thaJeztah merged 1 commit into
moby:masterfrom
dmcgowan:layer-store-remove-metastore-interface

Conversation

@dmcgowan

@dmcgowan dmcgowan commented Mar 6, 2018

Copy link
Copy Markdown
Member

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

thaJeztah commented Mar 6, 2018

Copy link
Copy Markdown
Member

ping @tonistiigi @dnephin PTAL

@dnephin dnephin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@vieux vieux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@codecov

codecov Bot commented Mar 10, 2018

Copy link
Copy Markdown

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

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

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