Merge pull request #114806 from qingwave/fix-volume-util

fix typo in volume util
This commit is contained in:
Kubernetes Prow Robot 2023-05-18 08:32:34 -07:00 committed by GitHub
commit 189fe3f3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -688,9 +688,9 @@ func HasMountRefs(mountPath string, mountRefs []string) bool {
// Neither of the above should be counted as a mount ref as those are handled
// by the kubelet. What we're concerned about is a path like
// /data/local/some/manual/mount
// As unmonting could interrupt usage from that mountpoint.
// As unmounting could interrupt usage from that mountpoint.
//
// So instead of looking for the entire /var/lib/... path, the plugins/kuberentes.io/
// So instead of looking for the entire /var/lib/... path, the plugins/kubernetes.io/
// suffix is trimmed off and searched for.
//
// If there isn't a /plugins/... path, the whole mountPath is used instead.
@ -706,7 +706,7 @@ func HasMountRefs(mountPath string, mountRefs []string) bool {
return false
}
// WriteVolumeCache flush disk data given the spcified mount path
// WriteVolumeCache flush disk data given the specified mount path
func WriteVolumeCache(deviceMountPath string, exec utilexec.Interface) error {
// If runtime os is windows, execute Write-VolumeCache powershell command on the disk
if runtime.GOOS == "windows" {