1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver
Brian Goff f29bbd16f5 Refcount graphdriver plugins properly
Adds 2 new methods to v2 plugin `Acquire` and `Release` which allow
refcounting directly at the plugin level instead of just the store.
Since a graphdriver is initialized exactly once, and is really managed
by a separate object, it didn't really seem right to call
`getter.Get()` to refcount graphdriver plugins.
On shutdown it was particularly weird where we'd either need to keep a
driver reference in daemon, or keep a reference to the pluggin getter in
the layer store, and even then still store extra details on if the
graphdriver is a plugin or not.

Instead the plugin proxy itself will handle calling the neccessary
refcounting methods directly on the plugin object.

Also adds a new interface in `plugingetter` to account for these new
functions which are not going to be implemented by v1 plugins.

Changes terms `plugingetter.CREATE` and `plugingetter.REMOVE` to
`ACQUIRE` and `RELEASE` respectively, which seems to be better
adjectives for what we're doing.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-12-09 19:46:28 -05:00
..
aufs Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
btrfs fix t.Errorf to t.Error in serveral _test.go 2016-11-14 17:54:43 +08:00
devmapper First header should be a top level header 2016-11-22 09:33:21 +08:00
graphtest Merge pull request #27915 from rhvgoyal/graph-create-opts 2016-11-10 01:07:41 +01:00
overlay Merge pull request #27753 from tonistiigi/fix-overlay-unmount 2016-11-10 13:14:45 -08:00
overlay2 Skip overlay2 diff tests when using naivediff 2016-11-10 13:52:22 -08:00
overlayutils overlay: warn if overlay backing fs doesn't support d_type 2016-11-09 07:18:27 +00:00
quota Make golint happy. 2016-10-17 17:28:27 -07:00
register Add separate overlay2 driver 2016-06-08 00:16:01 -07:00
vfs Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
windows Swap usage of LazyDLL and LoadDLL to LazySystemDLL. 2016-11-22 14:57:11 -08:00
zfs Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
counter.go Add reference counting to aufs 2016-05-23 15:57:23 -07:00
driver.go Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
driver_freebsd.go Move layer mount refcounts to mountedLayer 2016-03-23 14:42:52 -07:00
driver_linux.go promote overlay(2) graphdriver 2016-10-31 23:32:10 -07:00
driver_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
driver_unsupported.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
driver_windows.go Windows: Remove windowsdiff driver 2016-05-20 16:18:19 -07:00
fsdiff.go pkg/archive: remove unnecessary Archive and Reader type 2016-10-20 19:31:24 -07:00
plugin.go Refcount graphdriver plugins properly 2016-12-09 19:46:28 -05:00
proxy.go Refcount graphdriver plugins properly 2016-12-09 19:46:28 -05:00