We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e23c7ef commit 516012aCopy full SHA for 516012a
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
@@ -1689,7 +1689,11 @@ to support snapshots(backuped) as qcow2 files. */
1689
*/
1690
srcFile = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(srcPool, sourcePath));
1691
srcFile.setFormat(sourceFormat);
1692
- destFile = new QemuImgFile(destPath);
+ if (destPool.getType() == StoragePoolType.RBD) {
1693
+ destFile = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(destPool, destPath));
1694
+ } else {
1695
+ destFile = new QemuImgFile(destPath);
1696
+ }
1697
destFile.setFormat(destFormat);
1698
1699
try {
0 commit comments