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,8 +2708,12 @@ public class LibvirtComputingResource extends ServerResourceBase implements | |||||||
|         /* add patch disk */ |         /* add patch disk */ | ||||||
|         DiskDef patchDisk = new DiskDef(); |         DiskDef patchDisk = new DiskDef(); | ||||||
| 
 | 
 | ||||||
|  |         if (pool.getType() == StoragePoolType.CLVM) { | ||||||
|  |             patchDisk.defBlockBasedDisk(datadiskPath, 1, rootDisk.getBusType()); | ||||||
|  |         } else { | ||||||
|             patchDisk.defFileBasedDisk(datadiskPath, 1, rootDisk.getBusType(), |             patchDisk.defFileBasedDisk(datadiskPath, 1, rootDisk.getBusType(), | ||||||
|             DiskDef.diskFmtType.RAW); |             DiskDef.diskFmtType.RAW); | ||||||
|  |         } | ||||||
|   |   | ||||||
|         disks.add(patchDisk); |         disks.add(patchDisk); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user