Skip to content

Commit

Permalink
Merge pull request containerd#9601 from kiashok/cimfsInitFix
Browse files Browse the repository at this point in the history
Fix CimFS plugin init error
  • Loading branch information
fuweid authored Jan 4, 2024
2 parents d75bc05 + a8d3966 commit 287b4ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diff/windows/cimfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func init() {
}

if !cimfs.IsCimFSSupported() {
return nil, fmt.Errorf("host windows version doesn't support CimFS")
return nil, fmt.Errorf("host windows version doesn't support CimFS: %w", plugin.ErrSkipPlugin)
}
ic.Meta.Platforms = append(ic.Meta.Platforms, platforms.DefaultSpec())
return NewCimDiff(md.(*metadata.DB).ContentStore())
Expand Down
2 changes: 1 addition & 1 deletion snapshots/windows/cimfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func init() {
// NewCimFSSnapshotter returns a new CimFS based windows snapshotter
func NewCimFSSnapshotter(root string) (snapshots.Snapshotter, error) {
if !cimfs.IsCimFSSupported() {
return nil, fmt.Errorf("host windows version doesn't support CimFS")
return nil, fmt.Errorf("host windows version doesn't support CimFS: %w", plugin.ErrSkipPlugin)
}

baseSn, err := newBaseSnapshotter(root)
Expand Down

0 comments on commit 287b4ce

Please sign in to comment.