Merge pull request #2253 from stevvooe/report-zfs-correctly

vendor: update zfs dependency
This commit is contained in:
Derek McGowan
2018-03-29 18:30:57 -07:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/mount"
"github.com/containerd/containerd/platforms"
"github.com/containerd/containerd/plugin"
"github.com/containerd/containerd/snapshots"
"github.com/containerd/containerd/snapshots/storage"
@@ -27,6 +28,8 @@ func init() {
Type: plugin.SnapshotPlugin,
ID: "zfs",
InitFn: func(ic *plugin.InitContext) (interface{}, error) {
ic.Meta.Platforms = append(ic.Meta.Platforms, platforms.DefaultSpec())
ic.Meta.Exports["root"] = ic.Root
return NewSnapshotter(ic.Root)
},
})