Merge pull request #99928 from changshuchao/spell-error-unmount

fix Spelling error for Unmounter
This commit is contained in:
Kubernetes Prow Robot 2021-04-11 10:18:01 -07:00 committed by GitHub
commit ac3f11f73f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,10 +304,10 @@ func (c *nfsUnmounter) TearDownAt(dir string) error {
// Use extensiveMountPointCheck to consult /proc/mounts. We can't use faster
// IsLikelyNotMountPoint (lstat()), since there may be root_squash on the
// NFS server and kubelet may not be able to do lstat/stat() there.
forceUmounter, ok := c.mounter.(mount.MounterForceUnmounter)
forceUnmounter, ok := c.mounter.(mount.MounterForceUnmounter)
if ok {
klog.V(4).Infof("Using force unmounter interface")
return mount.CleanupMountWithForce(dir, forceUmounter, true /* extensiveMountPointCheck */, unMountTimeout)
return mount.CleanupMountWithForce(dir, forceUnmounter, true /* extensiveMountPointCheck */, unMountTimeout)
}
return mount.CleanupMountPoint(dir, c.mounter, true /* extensiveMountPointCheck */)
}