Skip to content

Commit 07683a6

Browse files
Merge pull request #45 from anastop/master
Add Update method for the cpuset controller
2 parents c755602 + 15ef4c3 commit 07683a6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cpuset.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ func (c *cpusetController) Create(path string, resources *specs.LinuxResources)
8282
return nil
8383
}
8484

85+
func (c *cpusetController) Update(path string, resources *specs.LinuxResources) error {
86+
return c.Create(path, resources)
87+
}
88+
8589
func (c *cpusetController) getValues(path string) (cpus []byte, mems []byte, err error) {
8690
if cpus, err = ioutil.ReadFile(filepath.Join(path, "cpuset.cpus")); err != nil && !os.IsNotExist(err) {
8791
return

0 commit comments

Comments
 (0)