]> Git Repo - qemu.git/blobdiff - block/vhdx-log.c
block: Add PreallocMode to bdrv_truncate()
[qemu.git] / block / vhdx-log.c
index 3f4c2aa095ab6a01f444af0158666eb9083677e9..01278f3fc94c5992bbbbb9627f2ba021c25fd530 100644 (file)
@@ -548,7 +548,7 @@ static int vhdx_log_flush(BlockDriverState *bs, BDRVVHDXState *s,
             if (new_file_size % (1024*1024)) {
                 /* round up to nearest 1MB boundary */
                 new_file_size = ((new_file_size >> 20) + 1) << 20;
-                bdrv_truncate(bs->file, new_file_size, NULL);
+                bdrv_truncate(bs->file, new_file_size, PREALLOC_MODE_OFF, NULL);
             }
         }
         qemu_vfree(desc_entries);
This page took 0.023455 seconds and 4 git commands to generate.