From ba02bf31cbffe329e549516e0004cf113ab4517e Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Wed, 30 Sep 2015 15:21:22 -0400 Subject: [PATCH] devmapper: Do not load transaction meta file in device Hash map device has map (device.Devices), contains valid devices and we skip all the files which are not device files. transaction metadata file is not device file. Skip this file when devices files are being read and loaded into map. Signed-off-by: Vivek Goyal --- daemon/graphdriver/devmapper/deviceset.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/graphdriver/devmapper/deviceset.go b/daemon/graphdriver/devmapper/deviceset.go index b079064029..b3d3c6d69f 100644 --- a/daemon/graphdriver/devmapper/deviceset.go +++ b/daemon/graphdriver/devmapper/deviceset.go @@ -388,6 +388,11 @@ func (devices *DeviceSet) deviceFileWalkFunction(path string, finfo os.FileInfo) return nil } + if finfo.Name() == transactionMetaFile { + logrus.Debugf("Skipping file %s", path) + return nil + } + logrus.Debugf("Loading data for file %s", path) hash := finfo.Name()