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:
root 2011-01-25 11:58:33 -05:00
parent c685c77d74
commit 53b2ba278d

View File

@ -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();