Searched refs:new_file_size (Results 1 – 2 of 2) sorted by relevance
/qemu/block/ |
H A D | vhdx-log.c | 496 uint64_t new_file_size; in vhdx_log_flush() local 557 new_file_size = desc_entries->hdr.last_file_offset; in vhdx_log_flush() 558 if (new_file_size % (1 * MiB)) { in vhdx_log_flush() 560 new_file_size = QEMU_ALIGN_UP(new_file_size, MiB); in vhdx_log_flush() 561 if (new_file_size > INT64_MAX) { in vhdx_log_flush() 565 ret = bdrv_truncate(bs->file, new_file_size, false, in vhdx_log_flush()
|
H A D | qcow2.c | 4458 int64_t old_file_size, last_cluster, new_file_size; in qcow2_co_truncate() local 4529 new_file_size = allocation_start + in qcow2_co_truncate() 4538 ret = bdrv_co_truncate(bs->file, new_file_size, false, prealloc, in qcow2_co_truncate() 4549 ret = bdrv_co_truncate(bs->file, new_file_size, false, prealloc, 0, in qcow2_co_truncate()
|