csi-driver-nfs/pkg/nfs
Jan Safranek 59fe400d43 <carry>: Umount volumes with force
In 4.5, NFS driver pod used 'clientaddr=<pod ip>' as a mount option.
When such pod restarts, it gets a different IP address and volumes mounted
by the old pod are basically broken - all operations (stat, umount) will
just hang forever.

Therefore:

1. Do not use IsLikelyNotMountPoint - it runs stat() on the volume, which
could hang forever. Read /etc/mounts instead.

2. Use "umount -f" to forcefully remove NFS mount.

Carry at least for whole OCP 4.6, where we need to support move from 4.5.
2020-08-19 16:57:20 +02:00
..
controllerserver.go remove csi-common dependencies 2019-05-30 17:01:07 -04:00
indentityserver.go remove csi-common dependencies 2019-05-30 17:01:07 -04:00
nfs.go Allow to set custom permissions for the mounted folder 2020-06-18 18:25:10 +02:00
nodeserver.go <carry>: Umount volumes with force 2020-08-19 16:57:20 +02:00
server.go remove csi-common dependencies 2019-05-30 17:01:07 -04:00
utils.go remove csi-common dependencies 2019-05-30 17:01:07 -04:00