Browse code

Warn when udev_sync is not supported.

Signed-off-by: David Calavera <david.calavera@gmail.com>

David Calavera authored on 2015/07/07 10:21:44
Showing 2 changed files
... ...
@@ -1106,10 +1106,7 @@ func (devices *DeviceSet) initDevmapper(doInit bool) error {
1106 1106
 
1107 1107
 	// https://github.com/docker/docker/issues/4036
1108 1108
 	if supported := devicemapper.UdevSetSyncSupport(true); !supported {
1109
-		logrus.Errorf("Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/cli/#daemon-storage-driver-option")
1110
-		if !devices.overrideUdevSyncCheck {
1111
-			return graphdriver.ErrNotSupported
1112
-		}
1109
+		logrus.Warn("Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/cli/#daemon-storage-driver-option")
1113 1110
 	}
1114 1111
 
1115 1112
 	if err := os.MkdirAll(devices.metadataDir(), 0700); err != nil && !os.IsExist(err) {
... ...
@@ -171,7 +171,7 @@ func scanPriorDrivers(root string) []string {
171 171
 	priorDrivers := []string{}
172 172
 	for driver := range drivers {
173 173
 		p := filepath.Join(root, driver)
174
-		if _, err := os.Stat(p); err == nil {
174
+		if _, err := os.Stat(p); err == nil && driver != "vfs" {
175 175
 			priorDrivers = append(priorDrivers, driver)
176 176
 		}
177 177
 	}