Skip to content

Commit 448d17b

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
Commit 23
1 parent 405478e commit 448d17b

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
@@ -470,8 +470,8 @@ public KVMPhysicalDisk copyPhysicalDisk(KVMPhysicalDisk srcDisk, String name, KV
470470
byte[] srcPassphrase, byte[] dstPassphrase, Storage.ProvisioningType provisioningType) {
471471
logger.info("Copying disk: " + srcDisk.getName() + " -> " + name);
472472
try {
473-
// Destination path: /mnt/<name>/<name>
474-
String destMountPoint = _mountPoint + "/" + name;
473+
// Get mount point for destination volume (handles junction path properly)
474+
String destMountPoint = getMountPointForVolume(name);
475475
String destPath = destMountPoint + "/" + name;
476476
// Ensure destination volume is mounted
477477
if (!isMounted(destMountPoint)) {

0 commit comments

Comments
 (0)