mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #114806 from qingwave/fix-volume-util
fix typo in volume util
This commit is contained in:
		@@ -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" {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user