mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #96593 from pandaamanda/typo_fix
fix typo and format for klog
This commit is contained in:
commit
984bc043d5
@ -834,9 +834,9 @@ func (og *operationGenerator) GenerateUnmountDeviceFunc(
|
|||||||
return volumetypes.GeneratedOperations{}, deviceToDetach.GenerateErrorDetailed("UnmountDevice.FindDeviceMountablePluginByName failed", err)
|
return volumetypes.GeneratedOperations{}, deviceToDetach.GenerateErrorDetailed("UnmountDevice.FindDeviceMountablePluginByName failed", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
volumeDeviceUmounter, err := deviceMountableVolumePlugin.NewDeviceUnmounter()
|
volumeDeviceUnmounter, err := deviceMountableVolumePlugin.NewDeviceUnmounter()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return volumetypes.GeneratedOperations{}, deviceToDetach.GenerateErrorDetailed("UnmountDevice.NewDeviceUmounter failed", err)
|
return volumetypes.GeneratedOperations{}, deviceToDetach.GenerateErrorDetailed("UnmountDevice.NewDeviceUnmounter failed", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
volumeDeviceMounter, err := deviceMountableVolumePlugin.NewDeviceMounter()
|
volumeDeviceMounter, err := deviceMountableVolumePlugin.NewDeviceMounter()
|
||||||
@ -868,7 +868,7 @@ func (og *operationGenerator) GenerateUnmountDeviceFunc(
|
|||||||
return deviceToDetach.GenerateError("GetDeviceMountRefs check failed", err)
|
return deviceToDetach.GenerateError("GetDeviceMountRefs check failed", err)
|
||||||
}
|
}
|
||||||
// Execute unmount
|
// Execute unmount
|
||||||
unmountDeviceErr := volumeDeviceUmounter.UnmountDevice(deviceMountPath)
|
unmountDeviceErr := volumeDeviceUnmounter.UnmountDevice(deviceMountPath)
|
||||||
if unmountDeviceErr != nil {
|
if unmountDeviceErr != nil {
|
||||||
// On failure, return error. Caller will log and retry.
|
// On failure, return error. Caller will log and retry.
|
||||||
return deviceToDetach.GenerateError("UnmountDevice failed", unmountDeviceErr)
|
return deviceToDetach.GenerateError("UnmountDevice failed", unmountDeviceErr)
|
||||||
|
@ -209,7 +209,7 @@ func (plugin *vsphereVolumePlugin) GetDeviceMountRefs(deviceMountPath string) ([
|
|||||||
|
|
||||||
// MountDevice mounts device to global mount point.
|
// MountDevice mounts device to global mount point.
|
||||||
func (attacher *vsphereVMDKAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMountPath string) error {
|
func (attacher *vsphereVMDKAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMountPath string) error {
|
||||||
klog.Info("vsphere MountDevice", devicePath, deviceMountPath)
|
klog.Infof("vsphere MountDevice mount %s to %s", devicePath, deviceMountPath)
|
||||||
mounter := attacher.host.GetMounter(vsphereVolumePluginName)
|
mounter := attacher.host.GetMounter(vsphereVolumePluginName)
|
||||||
notMnt, err := mounter.IsLikelyNotMountPoint(deviceMountPath)
|
notMnt, err := mounter.IsLikelyNotMountPoint(deviceMountPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user