]> Git Repo - qemu.git/blobdiff - block/vhdx-log.c
block: Add PreallocMode to bdrv_truncate()
[qemu.git] / block / vhdx-log.c
index 02eb1043107bc1e28b6be7d808adbc476b2f23f8..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->bs, new_file_size);
+                bdrv_truncate(bs->file, new_file_size, PREALLOC_MODE_OFF, NULL);
             }
         }
         qemu_vfree(desc_entries);
This page took 0.019276 seconds and 4 git commands to generate.