mirror of
https://github.com/moby/moby.git
synced 2026-08-12 22:16:46 +00:00
Re-added mount_*.go in docker package to not break tests/build
This commit is contained in:
7
mount_darwin.go
Normal file
7
mount_darwin.go
Normal 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
8
mount_linux.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user