mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
qemu-file: Remove total from qemu_file_total_transferred_*()
Function is already quite long. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20230508130909.65420-7-quintela@redhat.com>
This commit is contained in:
parent
f87e4d6d43
commit
6da835d42a
6 changed files with 15 additions and 16 deletions
|
@ -927,9 +927,9 @@ static int vmstate_load(QEMUFile *f, SaveStateEntry *se)
|
|||
static void vmstate_save_old_style(QEMUFile *f, SaveStateEntry *se,
|
||||
JSONWriter *vmdesc)
|
||||
{
|
||||
uint64_t old_offset = qemu_file_total_transferred_fast(f);
|
||||
uint64_t old_offset = qemu_file_transferred_fast(f);
|
||||
se->ops->save_state(f, se->opaque);
|
||||
uint64_t size = qemu_file_total_transferred_fast(f) - old_offset;
|
||||
uint64_t size = qemu_file_transferred_fast(f) - old_offset;
|
||||
|
||||
if (vmdesc) {
|
||||
json_writer_int64(vmdesc, "size", size);
|
||||
|
@ -2956,7 +2956,7 @@ bool save_snapshot(const char *name, bool overwrite, const char *vmstate,
|
|||
goto the_end;
|
||||
}
|
||||
ret = qemu_savevm_state(f, errp);
|
||||
vm_state_size = qemu_file_total_transferred(f);
|
||||
vm_state_size = qemu_file_transferred(f);
|
||||
ret2 = qemu_fclose(f);
|
||||
if (ret < 0) {
|
||||
goto the_end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue