Skip to content

Commit 10f4de0

Browse files
authored
kvm: consider provisioning type for local data volumes (#9141)
Fixes #8644 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent c779b1c commit 10f4de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ private KVMPhysicalDisk createPhysicalDiskByQemuImg(String name, KVMStoragePool
842842
destFile.setFormat(format);
843843
destFile.setSize(size);
844844
Map<String, String> options = new HashMap<String, String>();
845-
if (pool.getType() == StoragePoolType.NetworkFilesystem){
845+
if (List.of(StoragePoolType.NetworkFilesystem, StoragePoolType.Filesystem).contains(pool.getType())) {
846846
options.put("preallocation", QemuImg.PreallocationType.getPreallocationType(provisioningType).toString());
847847
}
848848

0 commit comments

Comments
 (0)