代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/docker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 42da0fd120db6f5b34c523212b54b88e8837efa6 Mon Sep 17 00:00:00 2001
From: jingrui <jingrui@huawei.com>
Date: Thu, 3 Jan 2019 14:09:59 +0800
Subject: [PATCH 038/111] devmapper: devicemapper: ignore error when
remove a device which does not exist
reason: cherry-pick commits to docker-18.09
cherry-pick from
e91268fda7 | * devicemapper: ignore error when remove a device which
does not exist
Conflicts:
daemon/graphdriver/devmapper/deviceset.go
pkg/devicemapper/devmapper.go
Change-Id: Ia1d33d78e4d7000c6e4bd54ec203800a0234cae5
Signed-off-by: Liu Hua <sdu.liu@huawei.com>
Signed-off-by: jingrui <jingrui@huawei.com>
---
.../engine/daemon/graphdriver/devmapper/deviceset.go | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/components/engine/daemon/graphdriver/devmapper/deviceset.go b/components/engine/daemon/graphdriver/devmapper/deviceset.go
index 0675b2eacd..be48d92e8d 100644
--- a/components/engine/daemon/graphdriver/devmapper/deviceset.go
+++ b/components/engine/daemon/graphdriver/devmapper/deviceset.go
@@ -2137,6 +2137,13 @@ func (devices *DeviceSet) deactivateDeviceMode(info *devInfo, deferredRemove boo
if deferredRemove {
err = devicemapper.RemoveDeviceDeferred(info.Name())
+ if err != nil {
+ if err == devicemapper.ErrEnxio {
+ logrus.Warnf("devmapper: device %s has gone", info.Name())
+ return nil
+ }
+ return err
+ }
} else {
err = devices.removeDevice(info.Name())
}
--
2.17.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。