@@ -3641,6 +3641,9 @@ public int compare(final DiskTO arg0, final DiskTO arg1) {
36413641 if (pool .getType () == StoragePoolType .Linstor && isQemuDiscardBugFree (diskBusType )) {
36423642 disk .setDiscard (DiscardType .UNMAP );
36433643 }
3644+ if (pool .getType () == StoragePoolType .CLVM ) {
3645+ disk .setDiskFormatType (DiskDef .DiskFmtType .QCOW2 );
3646+ }
36443647 } else {
36453648 if (volume .getType () == Volume .Type .DATADISK && !(isWindowsTemplate && isUefiEnabled )) {
36463649 disk .defFileBasedDisk (physicalDisk .getPath (), devId , diskBusTypeData , DiskDef .DiskFmtType .QCOW2 );
@@ -3995,7 +3998,7 @@ public synchronized String attachOrDetachDisk(final Connect conn,
39953998 if (attachingPool .getType () == StoragePoolType .RBD ) {
39963999 diskdef .defNetworkBasedDisk (attachingDisk .getPath (), attachingPool .getSourceHost (), attachingPool .getSourcePort (), attachingPool .getAuthUserName (),
39974000 attachingPool .getUuid (), devId , busT , DiskProtocol .RBD , DiskDef .DiskFmtType .RAW );
3998- } else if (attachingPool .getType () == StoragePoolType .PowerFlex ) {
4001+ } else if (attachingPool .getType () == StoragePoolType .PowerFlex || attachingPool . getType () == StoragePoolType . CLVM ) {
39994002 diskdef .defBlockBasedDisk (attachingDisk .getPath (), devId , busT );
40004003 } else if (attachingPool .getType () == StoragePoolType .Gluster ) {
40014004 diskdef .defNetworkBasedDisk (attachingDisk .getPath (), attachingPool .getSourceHost (), attachingPool .getSourcePort (), null ,
0 commit comments