|
@@ -192,8 +192,9 @@ func getBlkioWeightDevices(config containertypes.Resources) ([]specs.LinuxWeight
|
|
}
|
|
}
|
|
weight := weightDevice.Weight
|
|
weight := weightDevice.Weight
|
|
d := specs.LinuxWeightDevice{Weight: &weight}
|
|
d := specs.LinuxWeightDevice{Weight: &weight}
|
|
- d.Major = int64(unix.Major(stat.Rdev))
|
|
|
|
- d.Minor = int64(unix.Minor(stat.Rdev))
|
|
|
|
|
|
+ // The type is 32bit on mips.
|
|
|
|
+ d.Major = int64(unix.Major(uint64(stat.Rdev))) // nolint: unconvert
|
|
|
|
+ d.Minor = int64(unix.Minor(uint64(stat.Rdev))) // nolint: unconvert
|
|
blkioWeightDevices = append(blkioWeightDevices, d)
|
|
blkioWeightDevices = append(blkioWeightDevices, d)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -263,8 +264,9 @@ func getBlkioThrottleDevices(devs []*blkiodev.ThrottleDevice) ([]specs.LinuxThro
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
d := specs.LinuxThrottleDevice{Rate: d.Rate}
|
|
d := specs.LinuxThrottleDevice{Rate: d.Rate}
|
|
- d.Major = int64(unix.Major(stat.Rdev))
|
|
|
|
- d.Minor = int64(unix.Minor(stat.Rdev))
|
|
|
|
|
|
+ // the type is 32bit on mips
|
|
|
|
+ d.Major = int64(unix.Major(uint64(stat.Rdev))) // nolint: unconvert
|
|
|
|
+ d.Minor = int64(unix.Minor(uint64(stat.Rdev))) // nolint: unconvert
|
|
throttleDevices = append(throttleDevices, d)
|
|
throttleDevices = append(throttleDevices, d)
|
|
}
|
|
}
|
|
|
|
|