|
@@ -7,7 +7,6 @@ import (
|
|
"path"
|
|
"path"
|
|
|
|
|
|
"github.com/docker/docker/pkg/archive"
|
|
"github.com/docker/docker/pkg/archive"
|
|
- "github.com/docker/docker/pkg/mount"
|
|
|
|
)
|
|
)
|
|
|
|
|
|
type FsMagic uint64
|
|
type FsMagic uint64
|
|
@@ -139,18 +138,3 @@ func New(root string, options []string) (driver Driver, err error) {
|
|
}
|
|
}
|
|
return nil, fmt.Errorf("No supported storage backend found")
|
|
return nil, fmt.Errorf("No supported storage backend found")
|
|
}
|
|
}
|
|
-
|
|
|
|
-func MakePrivate(mountPoint string) error {
|
|
|
|
- mounted, err := mount.Mounted(mountPoint)
|
|
|
|
- if err != nil {
|
|
|
|
- return err
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if !mounted {
|
|
|
|
- if err := mount.Mount(mountPoint, mountPoint, "none", "bind,rw"); err != nil {
|
|
|
|
- return err
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return mount.ForceMount("", mountPoint, "none", "private")
|
|
|
|
-}
|
|
|