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
{{ message }}
Repository navigation
Commit 971e0c9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: plugins/storage/volume/storpool/src/main/java/com/cloud/hypervisor/kvm/storage/StorPoolStorageAdaptor.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -481,6 +481,10 @@ public KVMPhysicalDisk createPhysicalDisk(String name, KVMStoragePool pool, Phys
481
481
thrownewCloudRuntimeException("Encrypted StorPool volumes are not supported");
482
482
}
483
483
484
+
if (!PhysicalDiskFormat.RAW.equals(format)) {
485
+
thrownewCloudRuntimeException(String.format("StorPool volumes can only be created as RAW, %s was requested", format));
486
+
}
487
+
484
488
if (size <= 0) {
485
489
thrownewCloudRuntimeException("Size must be greater than 0 to create a StorPool volume");
0 commit comments