mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00
Stop forcing preallocation on block imports (#2921)
Due to what seemed like a bug in qemu-img, we started forcing preallocation on block imports as an arbitrary way to skip the error. After several updates in qemu and related dependencies, the bug is no longer reproducible. This commit reverts this behavior and enables deactivating preallocation on block imports. Signed-off-by: Alvaro Romero <alromero@redhat.com> Co-authored-by: Alvaro Romero <alromero@redhat.com>
This commit is contained in:
parent
2ea79c02d4
commit
ebc5d92561
@ -112,8 +112,6 @@ func main() {
|
||||
volumeMode := v1.PersistentVolumeBlock
|
||||
if _, err := os.Stat(common.WriteBlockPath); os.IsNotExist(err) {
|
||||
volumeMode = v1.PersistentVolumeFilesystem
|
||||
} else {
|
||||
preallocation = true
|
||||
}
|
||||
|
||||
// With writeback cache mode it's possible that the process will exit before all writes have been commited to storage.
|
||||
|
Loading…
Reference in New Issue
Block a user