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

Merge pull request from rhvgoyal/skip-dot-prefix-files

devicemapper: Skip the files with prefix "." during device map construct...
This commit is contained in:
Vincent Batts 2015-02-09 10:26:27 +01:00
commit 67a4f1db10

View file

@ -323,6 +323,11 @@ func (devices *DeviceSet) deviceFileWalkFunction(path string, finfo os.FileInfo)
return nil
}
if strings.HasPrefix(finfo.Name(), ".") {
log.Debugf("Skipping file %s", path)
return nil
}
if finfo.Name() == deviceSetMetaFile {
log.Debugf("Skipping file %s", path)
return nil