CLOUDSTACK-5432: KVM - LibvirtStorageAdaptor only needs to disconnectPhysicalDiskByPath

for ISO-based disks. At least, that's how it was in 4.2, so restoring to that functionality.
This commit is contained in:
Marcus Sorensen 2013-12-26 23:12:37 -07:00
parent 07de75191c
commit bb8b2805b6

View File

@ -684,10 +684,8 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
@Override
public boolean disconnectPhysicalDiskByPath(String localPath) {
// we've only ever cleaned up ISOs that are NFS mounted
String poolUuid = null;
if (localPath != null && localPath.startsWith(_mountPoint)) {
if (localPath != null && localPath.startsWith(_mountPoint) && localPath.endsWith(".iso")) {
String[] token = localPath.split("/");
if (token.length > 3) {