mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-24 00:18:36 -07:00
qemu-file: Remove _noflush from qemu_file_transferred_noflush()
qemu_file_transferred() don't exist anymore, so we can reuse the name. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231025091117.6342-7-quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
e833cad7e7
commit
e9c0eed7c2
5 changed files with 12 additions and 13 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_transferred_noflush(f);
|
||||
uint64_t old_offset = qemu_file_transferred(f);
|
||||
se->ops->save_state(f, se->opaque);
|
||||
uint64_t size = qemu_file_transferred_noflush(f) - old_offset;
|
||||
uint64_t size = qemu_file_transferred(f) - old_offset;
|
||||
|
||||
if (vmdesc) {
|
||||
json_writer_int64(vmdesc, "size", size);
|
||||
|
|
@ -3053,7 +3053,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_transferred_noflush(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