Skip to content

Commit c00d22e

Browse files
authored
Merge pull request #322 from mahendrapaipuri/fix_errorno_psi
Add `EOPNOTSUPP` to err filter for PSI data
2 parents 1a0f8bf + 771e32a commit c00d22e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cgroup2/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func getStatPSIFromFile(path string) *stats.PSIStats {
514514
}
515515

516516
if err := sc.Err(); err != nil {
517-
if !errors.Is(err, unix.ENOTSUP) {
517+
if !errors.Is(err, unix.ENOTSUP) && !errors.Is(err, unix.EOPNOTSUPP) {
518518
logrus.Errorf("unable to parse PSI data: %v", err)
519519
}
520520
return nil

0 commit comments

Comments
 (0)