1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Windows: Don't build Linux graph drivers

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-04-27 07:53:12 -07:00
parent 4ad05ed985
commit 9a9dc5ba96
17 changed files with 45 additions and 20 deletions

View file

@ -1,4 +1,4 @@
// +build !exclude_graphdriver_aufs
// +build !exclude_graphdriver_aufs,linux
package daemon

View file

@ -1,4 +1,4 @@
// +build !exclude_graphdriver_btrfs
// +build !exclude_graphdriver_btrfs,linux
package daemon

View file

@ -1,4 +1,4 @@
// +build !exclude_graphdriver_devicemapper
// +build !exclude_graphdriver_devicemapper,linux
package daemon

View file

@ -1,4 +1,4 @@
// +build exclude_graphdriver_aufs
// +build exclude_graphdriver_aufs,linux
package daemon

View file

@ -1,4 +1,4 @@
// +build !exclude_graphdriver_overlay
// +build !exclude_graphdriver_overlay,linux
package daemon

View file

@ -1,20 +1,22 @@
// +build linux
/*
aufs driver directory structure
.
layers // Metadata of layers
   1
   2
   3
diff // Content of the layer
   1 // Contains layers that need to be mounted for the id
   2
   3
mnt // Mount points for the rw layers to be mounted
1
2
3
.
layers // Metadata of layers
1
2
3
diff // Content of the layer
1 // Contains layers that need to be mounted for the id
2
3
mnt // Mount points for the rw layers to be mounted
1
2
3
*/

View file

@ -1,3 +1,5 @@
// +build linux
package aufs
import (

View file

@ -1,3 +1,5 @@
// +build linux
package aufs
import (

View file

@ -1,3 +1,5 @@
// +build linux
package aufs
import (

View file

@ -1,3 +1,5 @@
// +build linux
package aufs
import (

View file

@ -7,5 +7,5 @@ import "errors"
const MsRemount = 0
func mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
return errors.New("mount is not implemented on darwin")
return errors.New("mount is not implemented on this platform")
}

View file

@ -1,3 +1,5 @@
// +build linux
package btrfs
import (

View file

@ -1,3 +1,5 @@
// +build linux
package overlay
import (

View file

@ -0,0 +1,3 @@
// +build !linux
package overlay

View file

@ -1,3 +1,5 @@
// +build linux
package vfs
import (
@ -7,6 +9,7 @@ import (
"github.com/docker/docker/daemon/graphdriver"
"github.com/docker/docker/pkg/chrootarchive"
"github.com/docker/docker/pkg/system"
"github.com/docker/libcontainer/label"
)
@ -39,7 +42,7 @@ func (d *Driver) Cleanup() error {
func (d *Driver) Create(id, parent string) error {
dir := d.dir(id)
if err := os.MkdirAll(path.Dir(dir), 0700); err != nil {
if err := system.MkdirAll(path.Dir(dir), 0700); err != nil {
return err
}
if err := os.Mkdir(dir, 0755); err != nil {

View file

@ -0,0 +1,3 @@
// +build !linux
package vfs

View file

@ -1,3 +1,5 @@
// +build linux
package vfs
import (