mirror of https://github.com/docker/docs.git
Runtime: Remove unused funtion hasFilesystemSupport()
This used to be used to be used to detect AUFS support, but is not used anymore.
This commit is contained in:
parent
48070274ee
commit
bb42801cdc
19
runtime.go
19
runtime.go
|
|
@ -81,25 +81,6 @@ func (runtime *Runtime) getContainerElement(id string) *list.Element {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func hasFilesystemSupport(fstype string) bool {
|
|
||||||
content, err := ioutil.ReadFile("/proc/filesystems")
|
|
||||||
if err != nil {
|
|
||||||
log.Printf("WARNING: Unable to read /proc/filesystems, assuming fs %s is not supported.", fstype)
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
lines := strings.Split(string(content), "\n")
|
|
||||||
for _, line := range lines {
|
|
||||||
if strings.HasPrefix(line, "nodev") {
|
|
||||||
line = line[5:]
|
|
||||||
}
|
|
||||||
line = strings.TrimSpace(line)
|
|
||||||
if line == fstype {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
func (runtime *Runtime) GetDeviceSet() (DeviceSet, error) {
|
func (runtime *Runtime) GetDeviceSet() (DeviceSet, error) {
|
||||||
if runtime.deviceSet == nil {
|
if runtime.deviceSet == nil {
|
||||||
return nil, fmt.Errorf("No device set available")
|
return nil, fmt.Errorf("No device set available")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue