sureshanaparti commented on code in PR #8755:
URL: https://github.com/apache/cloudstack/pull/8755#discussion_r1516093895


##########
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java:
##########
@@ -2324,7 +2339,7 @@ private void validateVolumeResizeWithSize(VolumeVO 
volume, long currentSize, Lon
              * the actual disk size.
              */
             if (currentSize > newSize) {
-                if (volume != null && 
ImageFormat.QCOW2.equals(volume.getFormat()) && 
!Volume.State.Allocated.equals(volume.getState())) {
+                if (volume != null && 
ImageFormat.QCOW2.equals(volume.getFormat()) && 
!Volume.State.Allocated.equals(volume.getState()) && 
!StoragePoolType.StorPool.equals(volume.getPoolType())) {

Review Comment:
   hard-coded check, can check this through StorPool storage plugin?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to