Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mountPathAlreadyExists (0.16 sec)

  1. pkg/apis/core/validation/validation.go

    	}
    	return false, false
    }
    
    func mountNameAlreadyExists(name string, devices map[string]string) bool {
    	if _, ok := devices[name]; ok {
    		return true
    	}
    	return false
    }
    
    func mountPathAlreadyExists(mountPath string, devices map[string]string) bool {
    	for _, devPath := range devices {
    		if mountPath == devPath {
    			return true
    		}
    	}
    
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top