k3s/pkg/util/mount
Kubernetes Submit Queue 74f2305c4f
Merge pull request #57967 from jsafrane/fix-nfs-root-squash
Automatic merge from submit-queue. 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>.

Fixed TearDown of NFS with root squash.

NFS plugin should not use `IsLikelyNotMountPoint()`, as it uses `lstat()` / `stat()` to determine if the NFS volume is still mounted - NFS server may use root_squash and kubelet may not be allowed to do `lstat()` / `stat()` there.

It must use slower `IsNotMountPoint()` instead, including in `TearDown()` function.

**Release note**:

```release-note
NONE
```

/assign @gnufied @rootfs
2018-01-17 13:32:03 -08:00
..
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
OWNERS Add jsafrane as util/mount approver. 2018-01-08 14:19:22 +01:00
doc.go
exec.go
exec_mount.go Add ExecMounter 2017-11-10 13:14:40 +01:00
exec_mount_test.go Add ExecMounter 2017-11-10 13:14:40 +01:00
exec_mount_unsupported.go Fix cross-compliation of mount_exec.go 2017-11-14 16:30:00 +01:00
fake.go
mount.go Fixed TearDown of NFS with root squash. 2018-01-08 14:01:33 +01:00
mount_linux.go Implement file system resizing support on kubelet start 2017-11-22 16:06:10 -05:00
mount_linux_test.go
mount_unsupported.go Tmpdir can be a symlink, also fake mount needs to call nested mounter 2017-11-03 22:21:29 -04:00
mount_windows.go Merge pull request #53629 from andyzhangx/azurefile-improve 2017-11-01 04:38:12 -07:00
mount_windows_test.go Merge pull request #53629 from andyzhangx/azurefile-improve 2017-11-01 04:38:12 -07:00
nsenter_mount.go
nsenter_mount_test.go
nsenter_mount_unsupported.go
safe_format_and_mount_test.go