diff --git a/core/src/com/cloud/agent/api/BackupSnapshotCommand.java b/core/src/com/cloud/agent/api/BackupSnapshotCommand.java index 08b4b7b5a5c..bd9315c5a4a 100644 --- a/core/src/com/cloud/agent/api/BackupSnapshotCommand.java +++ b/core/src/com/cloud/agent/api/BackupSnapshotCommand.java @@ -50,6 +50,7 @@ public class BackupSnapshotCommand extends SnapshotCommand { Long dcId, Long accountId, Long volumeId, + String volumePath, String snapshotUuid, String snapshotName, String prevSnapshotUuid, @@ -64,6 +65,7 @@ public class BackupSnapshotCommand extends SnapshotCommand { this.firstBackupUuid = firstBackupUuid; this.isVolumeInactive = isVolumeInactive; this.vmName = vmName; + setVolumePath(volumePath); } public String getPrevSnapshotUuid() { diff --git a/core/src/com/cloud/agent/api/SnapshotCommand.java b/core/src/com/cloud/agent/api/SnapshotCommand.java index 72722b06778..9ef177c99a5 100644 --- a/core/src/com/cloud/agent/api/SnapshotCommand.java +++ b/core/src/com/cloud/agent/api/SnapshotCommand.java @@ -32,6 +32,7 @@ public class SnapshotCommand extends Command { private Long dcId; private Long accountId; private Long volumeId; + private String volumePath; protected SnapshotCommand() { @@ -98,6 +99,14 @@ public class SnapshotCommand extends Command { public Long getVolumeId() { return volumeId; } + + public String getVolumePath() { + return volumePath; + } + + public void setVolumePath(String path) { + volumePath = path; + } /** * {@inheritDoc} diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index d8aee767ac9..307aca08345 100755 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -496,6 +496,7 @@ public class SnapshotManagerImpl implements SnapshotManager { dcId, accountId, volumeId, + volume.getPath(), snapshotUuid, snapshot.getName(), prevSnapshotUuid,