Skip to content

Conversation

@samoht
Copy link
Contributor

@samoht samoht commented Apr 12, 2016

Thanks to @dave-tucker for the original version of this patch (see. #33). I've changed the interface slightly to simplify the creation of new plugins and I've added some tests, inspired from the volume helpers.

I have an other patch to add shim.go so we can use built-in graphdrivers as plugins, I need to write some test first (and figure how I can test that properly).

Thanks to @dave-tucker for the original version of this patch (see. docker#33).
I've changed the interface slightly to simplify the creation of new plugins
and I've added some tests, inspired from the volume helpers.

Signed-off-by: Thomas Gazagnaire <[email protected]>
samoht added 3 commits April 13, 2016 14:03
This is useful to test the package.

Signed-off-by: Thomas Gazagnaire <[email protected]>
Untested with real drivers, but unit-test pass.

Signed-off-by: Thomas Gazagnaire <[email protected]>
@icecrime
Copy link

Oooh nice!

@icecrime
Copy link

Ping @calavera @runcom @cpuguy83.

@dave-tucker
Copy link
Contributor

LGTM

@runcom
Copy link
Collaborator

runcom commented Apr 13, 2016

LGTM Ping @calavera

@cpuguy83
Copy link
Contributor

I think we changed the graphdriver interface to include a CreateReadWrite for differentiating read-only and read-write layer creation.

@samoht
Copy link
Contributor Author

samoht commented Apr 13, 2016

I've now added the shim layer to turn upstream drivers into plugins. There are some minor issues issues with the doc and the shim, not sure where it's the best place to report/fix that. For instance:

  • the doc doesn't document the mountLabel argument for Create
  • CreateReadWrite is not documented
  • etc..

Rename PluginXRequest into CallX as this is simpler to use and describe.

Signed-off-by: Thomas Gazagnaire <[email protected]>
@samoht
Copy link
Contributor Author

samoht commented Apr 13, 2016

I think we changed the graphdriver interface to include a CreateReadWrite for differentiating read-only and read-write layer creation.

Indeed. I'll open a PR in docker/docker to add this and fix inconsistencies and add that method call to my PR.

@samoht
Copy link
Contributor Author

samoht commented Apr 13, 2016

Note: I still haven't tested that with a real graph driver so maybe that's not very wise to merge it immediately.

@dave-tucker
Copy link
Contributor

@samoht did you manage to test with a real driver? If not, shall we merge anyway... we can always improve the code with real world testing later

@samoht
Copy link
Contributor Author

samoht commented Aug 2, 2016

@dave-tucker no I haven't tested it yet. But yes, feel free to merge.

@dave-tucker dave-tucker merged commit f3a3876 into docker:master Aug 2, 2016
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