OSDN Git Service

BufferedFile: append, then flush
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Aug 2011 23:43:24 +0000 (16:43 -0700)
committerJuan Quintela <quintela@redhat.com>
Wed, 17 Oct 2012 16:34:58 +0000 (18:34 +0200)
commit2dddf6f4133975af62e64cb6406ec1239491fa89
treec4592c8f620da52c387dccece5d9b7ec08f31d85
parent8d017193e2b66a65adf53e46a6372e55470fe7fd
BufferedFile: append, then flush

Simplify the logic for pushing data from the buffer to the output
pipe/socket.  This also matches more closely what will be the
operation of the migration thread.

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