k3s/pkg/util
Kubernetes Submit Queue f2b6e49e6c
Merge pull request #58433 from yue9944882/bugfix/lstat-parent-with-abs-path
Automatic merge from submit-queue (batch tested with PRs 59103, 58433). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

bugfix(mount): lstat with abs path of parent instead of '/..'

**What this PR does / why we need it**:

If a nfs volume with improper permission is mounted on a Pod, operation of deleting this Pod will fail and the pod itself will be stuck at a 'TERMINATING' status. Kubelet cannot reconcile it correctly.

This is because kubelet will try to find the mount-point with '..' file which needs `x` permission of dir.  When it's forbidden, the nfs volume will never umount without a correct mount-point finded.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #57095

**Special notes for your reviewer**:

**Release note**:

```release-note
Get parent dir via canonical absolute path when trying to judge mount-point
```
2018-02-14 03:55:34 -08:00
..
async fix all the typos across the project 2018-02-11 11:04:14 +08:00
bandwidth Fix TC resource Leak 2018-01-29 09:42:34 -05:00
config
configz
dbus Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
ebtables
env
file fix all the typos across the project 2018-02-11 11:04:14 +08:00
filesystem
flock
goroutinemap
hash
initsystem
interrupt
io
ipconfig
ipset fix "destroying ipset" error in kube-proxy.log when run cluster in local 2018-02-11 10:59:09 +08:00
iptables fix all the typos across the project 2018-02-11 11:04:14 +08:00
ipvs fix all the typos across the project 2018-02-11 11:04:14 +08:00
keymutex
labels
limitwriter
maps
metrics Remove Saturation() from rate limiter interface 2018-01-19 11:48:51 -05:00
mount Merge pull request #58433 from yue9944882/bugfix/lstat-parent-with-abs-path 2018-02-14 03:55:34 -08:00
net
netsh
node
normalizer
nsenter
oom
parsers
pointer
procfs
reflector/prometheus
removeall
resizefs Perform resize of mounted volume if necessary 2018-01-29 17:49:50 -05:00
resourcecontainer
rlimit
selinux
slice
strings
sysctl
system
tail
taints
template
term
threading
tolerations
version
workqueue/prometheus
BUILD Implement file system resizing support on kubelet start 2017-11-22 16:06:10 -05:00
verify-util-pkg.sh