Skip to content

Commit

Permalink
plugin: fix compilation errors
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Oct 24, 2024
1 parent fb6d1a2 commit ace11ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ package fuseoverlayfs
import (
"errors"

"github.com/containerd/containerd/v2/plugins"
fuseoverlayfs "github.com/containerd/fuse-overlayfs-snapshotter"
"github.com/containerd/platforms"
"github.com/containerd/plugin"
"github.com/containerd/plugin/registry"
)

// Config represents configuration for the fuse-overlayfs plugin.
Expand All @@ -34,8 +36,8 @@ type Config struct {
}

func init() {
plugin.Register(&plugin.Registration{
Type: plugin.SnapshotPlugin,
registry.Register(&plugin.Registration{
Type: plugins.SnapshotPlugin,
ID: "fuse-overlayfs",
Config: &Config{},
InitFn: func(ic *plugin.InitContext) (interface{}, error) {
Expand All @@ -46,7 +48,7 @@ func init() {
return nil, errors.New("invalid fuse-overlayfs configuration")
}

root := ic.Root
root := ic.Properties[plugins.PropertyRootDir]
if config.RootPath != "" {
root = config.RootPath
}
Expand Down

0 comments on commit ace11ac

Please sign in to comment.