From 8b61af189597579f1086a42fcdc824bfe737dce7 Mon Sep 17 00:00:00 2001 From: shin- Date: Thu, 21 Feb 2013 23:07:10 -0800 Subject: [PATCH] Re-added mount_*.go in docker package to not break tests/build --- mount_darwin.go | 7 +++++++ mount_linux.go | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 mount_darwin.go create mode 100644 mount_linux.go diff --git a/mount_darwin.go b/mount_darwin.go new file mode 100644 index 0000000000..aeac78cda5 --- /dev/null +++ b/mount_darwin.go @@ -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") +} diff --git a/mount_linux.go b/mount_linux.go new file mode 100644 index 0000000000..a5a24e8480 --- /dev/null +++ b/mount_linux.go @@ -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) +}