Skip to content

Commit 2d544e7

Browse files
committed
volume related operation works
1 parent fdee284 commit 2d544e7

39 files changed

Lines changed: 219 additions & 61 deletions

File tree

engine/api/src/org/apache/cloudstack/storage/command/CopyTemplateToPrimaryStorageAnswer.java renamed to api/src/com/cloud/agent/api/storage/CopyTemplateToPrimaryStorageAnswer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
package com.cloud.agent.api.storage;
12
// Licensed to the Apache Software Foundation (ASF) under one
23
// or more contributor license agreements. See the NOTICE file
34
// distributed with this work for additional information

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/CopyCommandResult.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919
package org.apache.cloudstack.engine.subsystem.api.storage;
2020

21+
import org.apache.cloudstack.storage.command.CommandResult;
22+
2123
import com.cloud.agent.api.Answer;
2224

2325
public class CopyCommandResult extends CommandResult {

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/CreateCmdResult.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919
package org.apache.cloudstack.engine.subsystem.api.storage;
2020

21+
import org.apache.cloudstack.storage.command.CommandResult;
22+
2123
import com.cloud.agent.api.Answer;
2224

2325
public class CreateCmdResult extends CommandResult {
@@ -26,6 +28,7 @@ public class CreateCmdResult extends CommandResult {
2628
public CreateCmdResult(String path, Answer answer) {
2729
super();
2830
this.path = path;
31+
this.answer = answer;
2932
}
3033

3134
public String getPath() {

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/DataStoreDriver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import java.util.Set;
2222

2323
import org.apache.cloudstack.framework.async.AsyncCompletionCallback;
24+
import org.apache.cloudstack.storage.command.CommandResult;
2425

2526
import com.cloud.agent.api.to.DataStoreTO;
2627

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/PrimaryDataStoreDriver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.apache.cloudstack.engine.subsystem.api.storage;
2020

2121
import org.apache.cloudstack.framework.async.AsyncCompletionCallback;
22+
import org.apache.cloudstack.storage.command.CommandResult;
2223

2324
public interface PrimaryDataStoreDriver extends DataStoreDriver {
2425
public void takeSnapshot(SnapshotInfo snapshot, AsyncCompletionCallback<CreateCmdResult> callback);

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/SnapshotResult.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package org.apache.cloudstack.engine.subsystem.api.storage;
22

33

4+
import org.apache.cloudstack.storage.command.CommandResult;
5+
46
import com.cloud.agent.api.Answer;
57

68
public class SnapshotResult extends CommandResult {

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/TemplateService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import org.apache.cloudstack.framework.async.AsyncCallFuture;
2222
import org.apache.cloudstack.framework.async.AsyncCompletionCallback;
23+
import org.apache.cloudstack.storage.command.CommandResult;
2324

2425

2526

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/VolumeService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import org.apache.cloudstack.engine.cloud.entity.api.VolumeEntity;
2222
import org.apache.cloudstack.framework.async.AsyncCallFuture;
23+
import org.apache.cloudstack.storage.command.CommandResult;
2324

2425
import com.cloud.exception.ConcurrentOperationException;
2526

engine/api/src/org/apache/cloudstack/storage/command/AttachPrimaryDataStoreCmd.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
package org.apache.cloudstack.storage.command;
2020

21+
2122
import com.cloud.agent.api.Command;
2223

2324
public class AttachPrimaryDataStoreCmd extends Command implements StorageSubSystemCommand {

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/CommandResult.java renamed to engine/api/src/org/apache/cloudstack/storage/command/CommandResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
package org.apache.cloudstack.engine.subsystem.api.storage;
19+
package org.apache.cloudstack.storage.command;
2020

2121
public class CommandResult {
2222
private boolean success;

0 commit comments

Comments
 (0)