mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	fix for the Bug 7836 - Add secondary storage- MS fails to check invalid path specified
mounting the path to validate the NFS URl
This commit is contained in:
		
							parent
							
								
									c685c77d74
								
							
						
					
					
						commit
						53b2ba278d
					
				@ -104,9 +104,6 @@ public class SecondaryStorageDiscoverer extends DiscovererBase implements Discov
 | 
			
		||||
    
 | 
			
		||||
    protected Map<? extends ServerResource, Map<String, String>> createNfsSecondaryStorageResource(long dcId, Long podId, URI uri) {
 | 
			
		||||
        
 | 
			
		||||
    	if (_useServiceVM) {
 | 
			
		||||
    	    return createDummySecondaryStorageResource(dcId, podId, uri);
 | 
			
		||||
    	}
 | 
			
		||||
        String mountStr = NfsUtils.uri2Mount(uri);
 | 
			
		||||
        
 | 
			
		||||
        Script script = new Script(true, "mount", _timeout, s_logger);
 | 
			
		||||
@ -136,6 +133,10 @@ public class SecondaryStorageDiscoverer extends DiscovererBase implements Discov
 | 
			
		||||
        
 | 
			
		||||
        file.delete();
 | 
			
		||||
 | 
			
		||||
    	if (_useServiceVM) {
 | 
			
		||||
    	    return createDummySecondaryStorageResource(dcId, podId, uri);
 | 
			
		||||
    	}        
 | 
			
		||||
        
 | 
			
		||||
        Map<NfsSecondaryStorageResource, Map<String, String>> srs = new HashMap<NfsSecondaryStorageResource, Map<String, String>>();
 | 
			
		||||
        
 | 
			
		||||
        NfsSecondaryStorageResource storage = new NfsSecondaryStorageResource();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user