File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ import (
2222 _ "github.com/containerd/containerd/runtime/v1/linux"
2323 _ "github.com/containerd/containerd/runtime/v2"
2424 _ "github.com/containerd/containerd/runtime/v2/runc/options"
25- _ "github.com/containerd/containerd/snapshots/native"
25+ _ "github.com/containerd/containerd/snapshots/native/plugin "
2626 _ "github.com/containerd/containerd/snapshots/overlay/plugin"
2727)
Original file line number Diff line number Diff line change 1919package main
2020
2121import (
22- _ "github.com/containerd/containerd/snapshots/native"
22+ _ "github.com/containerd/containerd/snapshots/native/plugin "
2323)
Original file line number Diff line number Diff line change @@ -24,26 +24,13 @@ import (
2424
2525 "github.com/containerd/containerd/log"
2626 "github.com/containerd/containerd/mount"
27- "github.com/containerd/containerd/platforms"
28- "github.com/containerd/containerd/plugin"
2927 "github.com/containerd/containerd/snapshots"
3028 "github.com/containerd/containerd/snapshots/storage"
3129
3230 "github.com/containerd/continuity/fs"
3331 "github.com/pkg/errors"
3432)
3533
36- func init () {
37- plugin .Register (& plugin.Registration {
38- Type : plugin .SnapshotPlugin ,
39- ID : "native" ,
40- InitFn : func (ic * plugin.InitContext ) (interface {}, error ) {
41- ic .Meta .Platforms = append (ic .Meta .Platforms , platforms .DefaultSpec ())
42- return NewSnapshotter (ic .Root )
43- },
44- })
45- }
46-
4734type snapshotter struct {
4835 root string
4936 ms * storage.MetaStore
You can’t perform that action at this time.
0 commit comments