Explorar o código

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

devicemapper: Skip the files with prefix "." during device map construct...
Vincent Batts %!s(int64=10) %!d(string=hai) anos
pai
achega
67a4f1db10
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      daemon/graphdriver/devmapper/deviceset.go

+ 5 - 0
daemon/graphdriver/devmapper/deviceset.go

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