Re-added mount_*.go in docker package to not break tests/build

This commit is contained in:
shin- 2013-02-21 23:07:10 -08:00
parent b4ea31e1de
commit 8b61af1895
2 changed files with 15 additions and 0 deletions

7
mount_darwin.go Normal file
View File

@ -0,0 +1,7 @@
package docker
import "errors"
func mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
return errors.New("mount is not implemented on darwin")
}

8
mount_linux.go Normal file
View File

@ -0,0 +1,8 @@
package docker
import "syscall"
func mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
return syscall.Mount(source, target, fstype, flags, data)
}