Skip to content

Commit

Permalink
overlay: change error to debug log for unsupported fs
Browse files Browse the repository at this point in the history
The overlay driver previously raised an error when encountering an
unsupported filesystem. This commit changes the error message to a
debug log, allowing the overlay driver to continue its operation even
with unsupported filesystems, without causing a failure.

[NO NEW TESTS NEEDED]

Introduced-by: containers#1374

Closes: containers#1546

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Mar 31, 2023
1 parent a5125db commit 0d7d8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func Init(home string, options graphdriver.Options) (graphdriver.Driver, error)
fsName, ok := graphdriver.FsNames[fsMagic]
if !ok {
if opts.mountProgram == "" {
return nil, fmt.Errorf("filesystem type %#x reported for %s is not supported with 'overlay': %w", fsMagic, filepath.Dir(home), graphdriver.ErrIncompatibleFS)
logrus.Debugf("filesystem type %#x reported for %s is not supported with 'overlay': %w", fsMagic, filepath.Dir(home), graphdriver.ErrIncompatibleFS)
}
fsName = "<unknown>"
}
Expand Down

0 comments on commit 0d7d8cf

Please sign in to comment.