Commit ea0007dd authored by Rong Gao's avatar Rong Gao Committed by SataQiu

fix kubelet can not delete orphaned pod directory when the kubelet's root…

fix kubelet can not delete orphaned pod directory when the kubelet's root directory symbolically links to another device's directory
parent d5f2096f
......@@ -234,7 +234,7 @@ func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {
if err != nil {
return true, err
}
rootStat, err := os.Lstat(filepath.Dir(strings.TrimSuffix(file, "/")))
rootStat, err := os.Stat(filepath.Dir(strings.TrimSuffix(file, "/")))
if err != nil {
return true, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment