1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

devmapper: udev sync is a requirement

closes #10664
closes #4036

Signed-off-by: Vincent Batts <vbatts@redhat.com>
Upstream-commit: ca628c6216ade64790dfbfe388fe4769433ec4aa
Component: engine
This commit is contained in:
Vincent Batts
2015-03-16 13:18:40 -04:00
parent 142a5765d0
commit 25835c875f

View File

@@ -963,9 +963,9 @@ func (devices *DeviceSet) initDevmapper(doInit bool) error {
// https://github.com/docker/docker/issues/4036
if supported := devicemapper.UdevSetSyncSupport(true); !supported {
logrus.Warnf("Udev sync is not supported. This will lead to unexpected behavior, data loss and errors")
logrus.Errorf("Udev sync is not supported. This will lead to unexpected behavior, data loss and errors")
return graphdriver.ErrNotSupported
}
logrus.Debugf("devicemapper: udev sync support: %v", devicemapper.UdevSyncSupported())
if err := os.MkdirAll(devices.metadataDir(), 0700); err != nil && !os.IsExist(err) {
return err