0021-set-layer-MountCount-0-without-mount-point-file.patch 864 字节
Newer Older
W
WangFengTu 已提交
1
From 4a0da2c2f2b44cb63c8e87f565f5fe886d690e4f Mon Sep 17 00:00:00 2001
O
overweight 已提交
2 3
From: LiFeng <lifeng68@huawei.com>
Date: Mon, 10 Jun 2019 09:41:44 -0400
W
WangFengTu 已提交
4
Subject: [PATCH 21/40] set layer MountCount = 0 without mount point file
O
overweight 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Signed-off-by: LiFeng <lifeng68@huawei.com>
---
 vendor/github.com/containers/storage/layers.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vendor/github.com/containers/storage/layers.go b/vendor/github.com/containers/storage/layers.go
index b50dac7..56084fa 100644
--- a/vendor/github.com/containers/storage/layers.go
+++ b/vendor/github.com/containers/storage/layers.go
@@ -415,6 +415,8 @@ func (r *layerStore) LoadLayerMountPoint(layer *Layer) error {
 	mdata, err := ioutil.ReadFile(mpath)
 	if err != nil {
 		if os.IsNotExist(err) {
+			layer.MountPoint = ""
+			layer.MountCount = 0
 			return nil
 		}
 		return err
-- 
D
dogsheng 已提交
25
2.19.1
O
overweight 已提交
26