File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -868,6 +868,13 @@ func (c *criContainer) GetCgroupsPath() string {
868868 return c .spec .Linux .CgroupsPath
869869}
870870
871+ func (c * criContainer ) GetIOPriority () * api.LinuxIOPriority {
872+ if c .spec .Process == nil {
873+ return nil
874+ }
875+ return api .FromOCILinuxIOPriority (c .spec .Process .IOPriority )
876+ }
877+
871878func (c * criContainer ) GetPid () uint32 {
872879 return c .pid
873880}
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ type LinuxContainer interface {
4545 GetLinuxResources () * nri.LinuxResources
4646 GetOOMScoreAdj () * int
4747 GetCgroupsPath () string
48+ GetIOPriority () * nri.LinuxIOPriority
4849}
4950
5051func commonContainerToNRI (ctr Container ) * nri.Container {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ func containerToNRI(ctr Container) *nri.Container {
3131 Resources : lnxCtr .GetLinuxResources (),
3232 OomScoreAdj : nri .Int (lnxCtr .GetOOMScoreAdj ()),
3333 CgroupsPath : lnxCtr .GetCgroupsPath (),
34+ IoPriority : lnxCtr .GetIOPriority (),
3435 }
3536 return nriCtr
3637}
You can’t perform that action at this time.
0 commit comments