weizhouapache commented on code in PR #14162:
URL: https://github.com/apache/cloudstack/pull/14162#discussion_r4002705872


##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtCheckVolumeCommandWrapper.java:
##########
@@ -64,13 +65,19 @@ public Answer execute(final CheckVolumeCommand command, 
final LibvirtComputingRe
             if 
(STORAGE_POOL_TYPES_SUPPORTED.contains(storageFilerTO.getType())) {
                 final KVMPhysicalDisk vol = pool.getPhysicalDisk(srcFile);
                 final String path = vol.getPath();
-                try {
-                    KVMPhysicalDisk.checkQcow2File(path);
-                } catch (final CloudRuntimeException e) {
-                    return new CheckVolumeAnswer(command, false, "", 0, 
getVolumeDetails(pool, vol));
+                final boolean isRbd = 
Storage.StoragePoolType.RBD.equals(storageFilerTO.getType());
+
+                if (!isRbd) {

Review Comment:
   can we check RBD volumes too ?



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