|
@@ -5,9 +5,6 @@ import (
|
|
"os"
|
|
"os"
|
|
"runtime"
|
|
"runtime"
|
|
"strings"
|
|
"strings"
|
|
-
|
|
|
|
- "github.com/Sirupsen/logrus"
|
|
|
|
- "github.com/docker/docker/pkg/system"
|
|
|
|
)
|
|
)
|
|
|
|
|
|
// DefaultDriverName is the driver name used for the driver
|
|
// DefaultDriverName is the driver name used for the driver
|
|
@@ -79,8 +76,7 @@ func (m *MountPoint) Setup() (string, error) {
|
|
return "", err
|
|
return "", err
|
|
}
|
|
}
|
|
if runtime.GOOS != "windows" { // Windows does not have deprecation issues here
|
|
if runtime.GOOS != "windows" { // Windows does not have deprecation issues here
|
|
- logrus.Warnf("Auto-creating non-existent volume host path %s, this is deprecated and will be removed soon", m.Source)
|
|
|
|
- if err := system.MkdirAll(m.Source, 0755); err != nil {
|
|
|
|
|
|
+ if err := os.MkdirAll(m.Source, 0755); err != nil {
|
|
return "", err
|
|
return "", err
|
|
}
|
|
}
|
|
}
|
|
}
|