Skip to content

Commit 4925879

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
Commit 26
1 parent 66c64b6 commit 4925879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/OntapNfsStorageAdaptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public KVMPhysicalDisk createPhysicalDisk(String volumeUuid, KVMStoragePool pool
360360
// 2. Create the qcow2 file on it
361361

362362
String mountPoint = getMountPointForVolume(volumeUuid);
363-
String diskPath = mountPoint + "/" + volumeUuid;
363+
String diskPath = mountPoint + "/" + volumeUuid + ".qcow2";
364364

365365
try {
366366
// The volume should be mounted via connectPhysicalDisk first
@@ -404,7 +404,7 @@ public KVMPhysicalDisk createPhysicalDisk(String name, KVMStoragePool pool, Phys
404404
public boolean deletePhysicalDisk(String volumeUuid, KVMStoragePool pool, Storage.ImageFormat format) {
405405
logger.info("Deleting ONTAP NFS physical disk: " + volumeUuid);
406406
String mountPoint = getMountPointForVolume(volumeUuid);
407-
String diskPath = mountPoint + "/" + volumeUuid;
407+
String diskPath = mountPoint + "/" + volumeUuid + ".qcow2";
408408
try {
409409
// Delete qcow2 file
410410
if (_storageLayer.exists(diskPath)) {

0 commit comments

Comments
 (0)