]> git.proxmox.com Git - mirror_qemu.git/commit
migration: unify stdio-based QEMUFile operations
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Sep 2012 10:04:03 +0000 (12:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 2 Nov 2012 17:34:59 +0000 (18:34 +0100)
commit5f0ebf1b4d58be0c0bb05beb195b6f42942eeee8
tree7c5d4f98d91c04e7832ea62d49d62076c36f5d70
parent4ba79505f43bd0ace35c3fe42197eb02e7e0478e
migration: unify stdio-based QEMUFile operations

Now that qemu_fseek does not exist anymore, there is no reason to do
an fseek before fread/fwrite when operating on an stdio file.
Thus, unify the get/put_buffer callbacks used by qemu_fopen
with those used for pipes.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
savevm.c