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:
parent
4ad05ed985
commit
9a9dc5ba96
17 changed files with 45 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
|||
// +build !exclude_graphdriver_aufs
|
||||
// +build !exclude_graphdriver_aufs,linux
|
||||
|
||||
package daemon
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !exclude_graphdriver_btrfs
|
||||
// +build !exclude_graphdriver_btrfs,linux
|
||||
|
||||
package daemon
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !exclude_graphdriver_devicemapper
|
||||
// +build !exclude_graphdriver_devicemapper,linux
|
||||
|
||||
package daemon
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build exclude_graphdriver_aufs
|
||||
// +build exclude_graphdriver_aufs,linux
|
||||
|
||||
package daemon
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !exclude_graphdriver_overlay
|
||||
// +build !exclude_graphdriver_overlay,linux
|
||||
|
||||
package daemon
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package aufs
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package aufs
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package aufs
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package aufs
|
||||
|
||||
import (
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package btrfs
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package overlay
|
||||
|
||||
import (
|
||||
|
|
3
daemon/graphdriver/overlay/overlay_unsupported.go
Normal file
3
daemon/graphdriver/overlay/overlay_unsupported.go
Normal file
|
@ -0,0 +1,3 @@
|
|||
// +build !linux
|
||||
|
||||
package overlay
|
|
@ -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 {
|
||||
|
|
3
daemon/graphdriver/vfs/driver_unsupported.go
Normal file
3
daemon/graphdriver/vfs/driver_unsupported.go
Normal file
|
@ -0,0 +1,3 @@
|
|||
// +build !linux
|
||||
|
||||
package vfs
|
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package vfs
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in a new issue