mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Adds missing bit from the original CLVM patch
263216caa5b548099451f669fae918ed63608fd7 (https://reviews.apache.org/r/6470/) regarding 'patchDisk' in createPatchVbd. This same patch should apply cleanly to both master and 4.0 branches RB: https://reviews.apache.org/r/6615/ Send-by: shadowsor@gmail.com
This commit is contained in:
parent
78b3b1ad83
commit
178953e963
@ -2708,9 +2708,13 @@ public class LibvirtComputingResource extends ServerResourceBase implements
|
||||
/* add patch disk */
|
||||
DiskDef patchDisk = new DiskDef();
|
||||
|
||||
patchDisk.defFileBasedDisk(datadiskPath, 1, rootDisk.getBusType(),
|
||||
DiskDef.diskFmtType.RAW);
|
||||
|
||||
if (pool.getType() == StoragePoolType.CLVM) {
|
||||
patchDisk.defBlockBasedDisk(datadiskPath, 1, rootDisk.getBusType());
|
||||
} else {
|
||||
patchDisk.defFileBasedDisk(datadiskPath, 1, rootDisk.getBusType(),
|
||||
DiskDef.diskFmtType.RAW);
|
||||
}
|
||||
|
||||
disks.add(patchDisk);
|
||||
|
||||
String bootArgs = vmSpec.getBootArgs();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user