mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Work around VMware problem about detaching volume that has snapshot been linked with it
This commit is contained in:
parent
cc7dc5e6be
commit
280884f6d7
@ -39,7 +39,8 @@ public class VolumeTO {
|
||||
private int deviceId;
|
||||
private String chainInfo;
|
||||
|
||||
public VolumeTO(long id, Volume.VolumeType type, Storage.StorageResourceType resourceType, StoragePoolType poolType, String name, String mountPoint, String path, long size, String chainInfo) {
|
||||
public VolumeTO(long id, Volume.VolumeType type, Storage.StorageResourceType resourceType, StoragePoolType poolType,
|
||||
String name, String mountPoint, String path, long size, String chainInfo) {
|
||||
this.id = id;
|
||||
this.name= name;
|
||||
this.path = path;
|
||||
|
||||
@ -37,8 +37,8 @@ public class DestroyCommand extends StorageCommand {
|
||||
}
|
||||
|
||||
public DestroyCommand(StoragePoolVO pool, VMTemplateStoragePoolVO templatePoolRef) {
|
||||
volume = new VolumeTO(templatePoolRef.getId(), null, Storage.StorageResourceType.STORAGE_POOL, pool.getPoolType(), null,
|
||||
pool.getPath(), templatePoolRef.getInstallPath(), templatePoolRef.getTemplateSize(), null);
|
||||
volume = new VolumeTO(templatePoolRef.getId(), null, Storage.StorageResourceType.STORAGE_POOL, pool.getPoolType(), null, pool.getPath(),
|
||||
templatePoolRef.getInstallPath(), templatePoolRef.getTemplateSize(), null);
|
||||
}
|
||||
|
||||
public VolumeTO getVolume() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user