fix kubelet can not delete orphaned pod directory when the kubelet's root directory symbolically links to another device's directory

k3s-v1.14.4
Rong Gao 2019-06-17 15:39:25 +08:00 committed by SataQiu
parent d5f2096f1a
commit ea0007dd6d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}