Vendor in latests containers/storage and opencontainers/runtime-tools

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2022-07-18 13:25:01 -04:00
parent 5e4d729434
commit fdba0d7909
9 changed files with 51 additions and 14 deletions

View File

@ -201,7 +201,11 @@ func resourcesToProps(res *configs.Resources, v2 bool) (map[string]uint64, map[s
// Blkio
if res.BlkioWeight > 0 {
uMap["BlockIOWeight"] = uint64(res.BlkioWeight)
if v2 {
uMap["IOWeight"] = uint64(res.BlkioWeight)
} else {
uMap["BlockIOWeight"] = uint64(res.BlkioWeight)
}
}
// systemd requires the paths to be in the form /dev/{block, char}/major:minor