We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32e1e94 + 6b4521b commit addec8cCopy full SHA for addec8c
1 file changed
header/src/main/java/org/zstack/header/vm/VmInstanceSpec.java
@@ -847,7 +847,9 @@ public void setBootMode(String bootMode) {
847
848
public long getRootDiskAllocateSize() {
849
if (rootDiskOffering == null) {
850
- return this.getImageSpec().getInventory().getSize();
+ long virtualSize = this.getImageSpec().getInventory().getSize();
851
+ long actualSize = this.getImageSpec().getInventory().getActualSize();
852
+ return Math.max(virtualSize, actualSize);
853
}
854
return rootDiskOffering.getDiskSize();
855
0 commit comments