mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
kvm: consider provisioning type for local data volumes (#9141)
Fixes #8644 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
c779b1c616
commit
10f4de0318
@ -842,7 +842,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
|
|||||||
destFile.setFormat(format);
|
destFile.setFormat(format);
|
||||||
destFile.setSize(size);
|
destFile.setSize(size);
|
||||||
Map<String, String> options = new HashMap<String, String>();
|
Map<String, String> options = new HashMap<String, String>();
|
||||||
if (pool.getType() == StoragePoolType.NetworkFilesystem){
|
if (List.of(StoragePoolType.NetworkFilesystem, StoragePoolType.Filesystem).contains(pool.getType())) {
|
||||||
options.put("preallocation", QemuImg.PreallocationType.getPreallocationType(provisioningType).toString());
|
options.put("preallocation", QemuImg.PreallocationType.getPreallocationType(provisioningType).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user