Revert "fix for the Bug 7836 - Add secondary storage- MS fails to check invalid path specified"

This reverts commit 53b2ba278d597cd653774e0f89273ddfc9cfdedb.
This commit is contained in:
Edison Su 2011-01-26 04:07:36 -05:00
parent db981484ab
commit e4d9216222

View File

@ -104,6 +104,9 @@ 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);
@ -132,10 +135,6 @@ public class SecondaryStorageDiscoverer extends DiscovererBase implements Discov
script.execute();
file.delete();
if (_useServiceVM) {
return createDummySecondaryStorageResource(dcId, podId, uri);
}
Map<NfsSecondaryStorageResource, Map<String, String>> srs = new HashMap<NfsSecondaryStorageResource, Map<String, String>>();