1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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 <vgoyal@redhat.com>
This commit is contained in:
Vivek Goyal 2015-09-30 15:21:22 -04:00
parent c300978370
commit ba02bf31cb

View file

@ -388,6 +388,11 @@ func (devices *DeviceSet) deviceFileWalkFunction(path string, finfo os.FileInfo)
return nil return nil
} }
if finfo.Name() == transactionMetaFile {
logrus.Debugf("Skipping file %s", path)
return nil
}
logrus.Debugf("Loading data for file %s", path) logrus.Debugf("Loading data for file %s", path)
hash := finfo.Name() hash := finfo.Name()