Move raw cgroups into fs package (filesystem)

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-04-18 21:34:26 -07:00
parent 9f508e4b3e
commit 8cc8aca9cc
3 changed files with 26 additions and 24 deletions

View file

@ -3,9 +3,7 @@ package cgroups
import (
"bufio"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"github.com/dotcloud/docker/pkg/mount"
@ -67,7 +65,3 @@ func parseCgroupFile(subsystem string, r io.Reader) (string, error) {
}
return "", ErrNotFound
}
func writeFile(dir, file, data string) error {
return ioutil.WriteFile(filepath.Join(dir, file), []byte(data), 0700)
}