fix Spelling error for klog

Signed-off-by: he.qingguo <he.qingguo@zte.com.cn>
This commit is contained in:
he.qingguo 2020-12-28 10:50:06 +08:00
parent 0a839c6c3b
commit 620c23473f
2 changed files with 3 additions and 3 deletions

View File

@ -561,7 +561,7 @@ func TestCSI_VolumeAll(t *testing.T) {
if err := csiDevUnmounter.UnmountDevice(devMountPath); err != nil { if err := csiDevUnmounter.UnmountDevice(devMountPath); err != nil {
t.Fatalf("csiTest.VolumeAll deviceMounter.UnmountDevice failed: %s", err) t.Fatalf("csiTest.VolumeAll deviceMounter.UnmountDevice failed: %s", err)
} }
t.Log("csiTest.VolumeAll deviceUmounter.UnmountDevice done OK for path", devMountPath) t.Log("csiTest.VolumeAll deviceUnmounter.UnmountDevice done OK for path", devMountPath)
} }
} else { } else {
t.Log("csiTest.VolumeAll DeviceMountablePluginBySpec did not find a plugin, skipping unmounting.") t.Log("csiTest.VolumeAll DeviceMountablePluginBySpec did not find a plugin, skipping unmounting.")

View File

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