Skip to content

Commit 38f54b0

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
Commit 27
1 parent 4925879 commit 38f54b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ public boolean disconnectPhysicalDiskByPath(String localPath) {
297297
@Override
298298
public KVMPhysicalDisk getPhysicalDisk(String volumeUuid, KVMStoragePool pool) {
299299
logger.debug("Getting physical disk info for: " + volumeUuid);
300-
// Path to qcow2 file: <mountPoint>/<volumeUuid>.qcow2
300+
// Path to qcow2 file: <mountPoint>/<volumeUuid>
301301
String mountPoint = getMountPointForVolume(volumeUuid);
302-
String diskPath = mountPoint + "/" + volumeUuid + ".qcow2";
302+
String diskPath = mountPoint + "/" + volumeUuid;
303303

304304
// Check if file exists - if not, this might be a new disk that needs to be created
305305
// For ONTAP managed storage, the disk file doesn't exist until we create it
@@ -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 + ".qcow2";
363+
String diskPath = mountPoint + "/" + volumeUuid;
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 + ".qcow2";
407+
String diskPath = mountPoint + "/" + volumeUuid;
408408
try {
409409
// Delete qcow2 file
410410
if (_storageLayer.exists(diskPath)) {

0 commit comments

Comments
 (0)