Merge pull request #9601 from kiashok/cimfsInitFix
Fix CimFS plugin init error
This commit is contained in:
commit
287b4cec9b
@ -51,7 +51,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !cimfs.IsCimFSSupported() {
|
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())
|
ic.Meta.Platforms = append(ic.Meta.Platforms, platforms.DefaultSpec())
|
||||||
return NewCimDiff(md.(*metadata.DB).ContentStore())
|
return NewCimDiff(md.(*metadata.DB).ContentStore())
|
||||||
|
@ -70,7 +70,7 @@ func init() {
|
|||||||
// NewCimFSSnapshotter returns a new CimFS based windows snapshotter
|
// NewCimFSSnapshotter returns a new CimFS based windows snapshotter
|
||||||
func NewCimFSSnapshotter(root string) (snapshots.Snapshotter, error) {
|
func NewCimFSSnapshotter(root string) (snapshots.Snapshotter, error) {
|
||||||
if !cimfs.IsCimFSSupported() {
|
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)
|
baseSn, err := newBaseSnapshotter(root)
|
||||||
|
Loading…
Reference in New Issue
Block a user