Merge pull request #79094 from gaorong/fix-IsLikelyNotMountPoint

fix kubelet can not delete orphaned pod directory when "/var/lib/kubelet/pods" directory symbolically links to another device's directory
This commit is contained in:
Kubernetes Prow Robot 2019-06-18 19:02:31 -07:00 committed by GitHub
commit efa043151c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {
if err != nil { if err != nil {
return true, err return true, err
} }
rootStat, err := os.Lstat(filepath.Dir(strings.TrimSuffix(file, "/"))) rootStat, err := os.Stat(filepath.Dir(strings.TrimSuffix(file, "/")))
if err != nil { if err != nil {
return true, err return true, err
} }