Skip to content

Commit

Permalink
Ignore unknown device numbers in io.stat (#7894)
Browse files Browse the repository at this point in the history
  • Loading branch information
bduffany authored and siggisim committed Nov 14, 2024
1 parent e56f04a commit 3101931
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enterprise/server/remote_execution/cgroup/cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ func readIOStat(r io.Reader) ([]*repb.CgroupIOStats, error) {
return nil, fmt.Errorf("fields unexpectedly empty")
}
dev := fields[0]
if dev == "(unknown)" {
// TODO(bduffany): figure out what these "(unknown)" devices are
continue
}
majStr, minStr, ok := strings.Cut(dev, ":")
if !ok {
return nil, fmt.Errorf("malformed device field")
Expand Down

0 comments on commit 3101931

Please sign in to comment.