|
47 | 47 | import org.apache.cloudstack.storage.command.CreateObjectAnswer; |
48 | 48 | import org.apache.cloudstack.storage.command.StorageSubSystemCommand; |
49 | 49 | import org.apache.cloudstack.storage.datastore.api.StorPoolSnapshotDef; |
50 | | -import org.apache.cloudstack.storage.datastore.api.StorPoolVolume; |
| 50 | +import org.apache.cloudstack.storage.datastore.api.StorPoolVolumeDef; |
51 | 51 | import org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao; |
52 | 52 | import org.apache.cloudstack.storage.datastore.db.SnapshotDataStoreDao; |
53 | 53 | import org.apache.cloudstack.storage.datastore.db.SnapshotDataStoreVO; |
@@ -456,13 +456,13 @@ private String updateStorPoolVolume(VolumeObject vol, ResizeVolumePayload payloa |
456 | 456 | SpApiResponse resp = new SpApiResponse(); |
457 | 457 | if (tier != null || template != null) { |
458 | 458 | Map<String, String> tags = StorPoolHelper.addStorPoolTags(null, null, null, null, tier); |
459 | | - StorPoolVolume spVolume = new StorPoolVolume(name, payload.newSize, tags, null, null, template, null, null, |
| 459 | + StorPoolVolumeDef spVolume = new StorPoolVolumeDef(name, payload.newSize, tags, null, null, template, null, null, |
460 | 460 | payload.shrinkOk); |
461 | 461 | resp = StorPoolUtil.volumeUpdate(spVolume, conn); |
462 | 462 | } else { |
463 | 463 | long maxIops = payload.newMaxIops == null ? Long.valueOf(0) : payload.newMaxIops; |
464 | 464 |
|
465 | | - StorPoolVolume spVolume = new StorPoolVolume(name, payload.newSize, null, null, maxIops, null, null, null, |
| 465 | + StorPoolVolumeDef spVolume = new StorPoolVolumeDef(name, payload.newSize, null, null, maxIops, null, null, null, |
466 | 466 | payload.shrinkOk); |
467 | 467 | StorPoolUtil.spLog( |
468 | 468 | "StorpoolPrimaryDataStoreDriverImpl.resize: name=%s, uuid=%s, oldSize=%d, newSize=%s, shrinkOk=%s, maxIops=%s", |
@@ -1394,7 +1394,7 @@ public void updateStorageWithTheNewDiskOffering(Volume volume, DiskOffering newD |
1394 | 1394 | StorPoolUtil.spLog("Updating volume [%s] with tier tag [%s] or template [%s] from Disk offering", volume.getId(), tier, template); |
1395 | 1395 | String volumeName = StorPoolStorageAdaptor.getVolumeNameFromPath(volume.getPath(), true); |
1396 | 1396 | Map<String, String> tags = StorPoolHelper.addStorPoolTags(null, null, null, null, tier); |
1397 | | - StorPoolVolume spVolume = new StorPoolVolume(volumeName, null, tags, null, null, template, null, null, null); |
| 1397 | + StorPoolVolumeDef spVolume = new StorPoolVolumeDef(volumeName, null, tags, null, null, template, null, null, null); |
1398 | 1398 | SpApiResponse response = StorPoolUtil.volumeUpdate(spVolume, conn); |
1399 | 1399 | if (response.getError() != null) { |
1400 | 1400 | StorPoolUtil.spLog("Could not update volume [%s] with tier tag [%s] or template [%s] from Disk offering due to [%s]", volume.getId(), tier, template, response.getError()); |
|
0 commit comments