mirror of https://github.com/apache/cloudstack.git
Adds missing bit from the original CLVM patch
263216caa5
(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…
Reference in New Issue