Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
return c.spec.Linux.CgroupsPath
}
+func (c *criContainer) GetIOPriority() *api.LinuxIOPriority {
+ if c.spec.Process == nil {
+ return nil
+ }
+ return api.FromOCILinuxIOPriority(c.spec.Process.IOPriority)
+}
+
func (c *criContainer) GetPid() uint32 {
return c.pid
}
GetLinuxResources() *nri.LinuxResources
GetOOMScoreAdj() *int
GetCgroupsPath() string
+ GetIOPriority() *nri.LinuxIOPriority
}
func commonContainerToNRI(ctr Container) *nri.Container {
Resources: lnxCtr.GetLinuxResources(),
OomScoreAdj: nri.Int(lnxCtr.GetOOMScoreAdj()),
CgroupsPath: lnxCtr.GetCgroupsPath(),
+ IoPriority: lnxCtr.GetIOPriority(),
}
return nriCtr
}