Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,11 @@ else if (HypervisorType.KVM.equals(snapshotInfo.getHypervisorType())) {
VolumeObjectTO newVolume = new VolumeObjectTO();

newVolume.setSize(volumeInfo.getSize());
newVolume.setPath(volumeInfo.get_iScsiName());
String path = volumeInfo.get_iScsiName();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be applicable for the storage vendors, can you check in case of any regressions ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If iScsiName is available, it continues to be used as the volume path. Otherwise,It falls back to getPath(). If neither value is available, the path remains null. Therefore, existing storage vendors providing iScsiName will not be affected.

if (path == null) {
path = volumeInfo.getPath();
}
newVolume.setPath(path);
newVolume.setFormat(volumeInfo.getFormat());

copyCmdAnswer = new CopyCmdAnswer(newVolume);
Expand Down
Loading