You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/storage/volume/adaptive/src/main/java/org/apache/cloudstack/storage/datastore/adapter/ProviderAdapter.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -87,8 +87,9 @@ public interface ProviderAdapter {
87
87
88
88
/**
89
89
* Copy a source object to a destination volume. The source object can be a Volume, Snapshot, or Template
90
+
* @param newSize the desired size in bytes for the destination volume (supports resize-during-copy)
Copy file name to clipboardExpand all lines: plugins/storage/volume/adaptive/src/main/java/org/apache/cloudstack/storage/datastore/driver/AdaptiveDataStoreDriverImpl.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -337,7 +337,8 @@ public void copyAsync(DataObject srcdata, DataObject destdata,
Copy file name to clipboardExpand all lines: plugins/storage/volume/flasharray/src/main/java/org/apache/cloudstack/storage/datastore/adapter/flasharray/FlashArrayAdapter.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -367,7 +367,8 @@ public ProviderSnapshot getSnapshot(ProviderAdapterContext context, ProviderAdap
Copy file name to clipboardExpand all lines: plugins/storage/volume/primera/src/main/java/org/apache/cloudstack/storage/datastore/adapter/primera/PrimeraAdapter.java
+62-7Lines changed: 62 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -288,39 +288,94 @@ public void delete(ProviderAdapterContext context, ProviderAdapterDataObject req
thrownewRuntimeException("Source volume " + sourceVolumeInfo.getExternalUuid() + " with provider name " + sourceVolumeInfo.getExternalName() + " not found on storage provider");
305
312
}
306
313
314
+
// Determine copy method based on size difference
315
+
// Online copy: Direct clone without size change (faster, immediate)
0 commit comments