Work around VMware problem about detaching volume that has snapshot been linked with it

This commit is contained in:
Kelven Yang 2010-12-03 18:37:25 -08:00
parent cc7dc5e6be
commit 280884f6d7
2 changed files with 4 additions and 3 deletions

View File

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

View File

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