OSDN Git Service

migration: use qemu_file_set_error
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Feb 2013 16:36:16 +0000 (17:36 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 11 Mar 2013 12:32:01 +0000 (13:32 +0100)
commit63dfbd7ee03185c181a0791958ec9c8337089b55
treecbb7f27a7bc74e97238b1da1817364242ba9d033
parentf5821518ed6d49aae9fd0aa6169d2d74bb83054c
migration: use qemu_file_set_error

Remove the return value of buffered_flush, pass it via the error code
of s->file.  Once this is done, the error can be retrieved simply
via migrate_fd_close's call to qemu_fclose.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration.c