Signed-off-by: Akihiro Suda <suda.kyoto@gmail.com>
| ... | ... |
@@ -523,26 +523,6 @@ func (container *Container) ShouldRestart() bool {
|
| 523 | 523 |
return shouldRestart |
| 524 | 524 |
} |
| 525 | 525 |
|
| 526 |
-// AddBindMountPoint adds a new bind mount point configuration to the container. |
|
| 527 |
-func (container *Container) AddBindMountPoint(name, source, destination string, rw bool) {
|
|
| 528 |
- container.MountPoints[destination] = &volume.MountPoint{
|
|
| 529 |
- Name: name, |
|
| 530 |
- Source: source, |
|
| 531 |
- Destination: destination, |
|
| 532 |
- RW: rw, |
|
| 533 |
- } |
|
| 534 |
-} |
|
| 535 |
- |
|
| 536 |
-// AddLocalMountPoint adds a new local mount point configuration to the container. |
|
| 537 |
-func (container *Container) AddLocalMountPoint(name, destination string, rw bool) {
|
|
| 538 |
- container.MountPoints[destination] = &volume.MountPoint{
|
|
| 539 |
- Name: name, |
|
| 540 |
- Driver: volume.DefaultDriverName, |
|
| 541 |
- Destination: destination, |
|
| 542 |
- RW: rw, |
|
| 543 |
- } |
|
| 544 |
-} |
|
| 545 |
- |
|
| 546 | 526 |
// AddMountPointWithVolume adds a new mount point configured with a volume to the container. |
| 547 | 527 |
func (container *Container) AddMountPointWithVolume(destination string, vol volume.Volume, rw bool) {
|
| 548 | 528 |
container.MountPoints[destination] = &volume.MountPoint{
|
| 549 | 529 |
deleted file mode 100644 |
| ... | ... |
@@ -1,13 +0,0 @@ |
| 1 |
-// +build !windows |
|
| 2 |
- |
|
| 3 |
-package image |
|
| 4 |
- |
|
| 5 |
-func getOSVersion() string {
|
|
| 6 |
- // For Linux, images do not specify a version. |
|
| 7 |
- return "" |
|
| 8 |
-} |
|
| 9 |
- |
|
| 10 |
-func hasOSFeature(_ string) bool {
|
|
| 11 |
- // Linux currently has no OS features |
|
| 12 |
- return false |
|
| 13 |
-} |
| 14 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,27 +0,0 @@ |
| 1 |
-package image |
|
| 2 |
- |
|
| 3 |
-import ( |
|
| 4 |
- "fmt" |
|
| 5 |
- |
|
| 6 |
- "github.com/docker/docker/pkg/system" |
|
| 7 |
-) |
|
| 8 |
- |
|
| 9 |
-// Windows OS features |
|
| 10 |
-const ( |
|
| 11 |
- FeatureWin32k = "win32k" // The kernel windowing stack is required |
|
| 12 |
-) |
|
| 13 |
- |
|
| 14 |
-func getOSVersion() string {
|
|
| 15 |
- v := system.GetOSVersion() |
|
| 16 |
- return fmt.Sprintf("%d.%d.%d", v.MajorVersion, v.MinorVersion, v.Build)
|
|
| 17 |
-} |
|
| 18 |
- |
|
| 19 |
-func hasOSFeature(f string) bool {
|
|
| 20 |
- switch f {
|
|
| 21 |
- case FeatureWin32k: |
|
| 22 |
- return system.HasWin32KSupport() |
|
| 23 |
- default: |
|
| 24 |
- // Unrecognized feature. |
|
| 25 |
- return false |
|
| 26 |
- } |
|
| 27 |
-} |
| ... | ... |
@@ -258,8 +258,7 @@ func (r *Root) validateName(name string) error {
|
| 258 | 258 |
// localVolume implements the Volume interface from the volume package and |
| 259 | 259 |
// represents the volumes created by Root. |
| 260 | 260 |
type localVolume struct {
|
| 261 |
- m sync.Mutex |
|
| 262 |
- usedCount int |
|
| 261 |
+ m sync.Mutex |
|
| 263 | 262 |
// unique name of the volume |
| 264 | 263 |
name string |
| 265 | 264 |
// path is the path on the host where the data lives |