qemu-file: simplify and export qemu_ftell
commit3f2d38faab97f4d676c41868a8243997b2aab7cb
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Feb 2013 16:36:40 +0000 (22 17:36 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 11 Mar 2013 12:32:02 +0000 (11 13:32 +0100)
tree16be1ba60ea76fc7d5d0aab03ac06e3fd9c97ae1
parent0cc3f3ccc9d29acc94b995430518bda1c7c01bef
qemu-file: simplify and export qemu_ftell

Force a flush when qemu_ftell is called.  This simplifies the buffer magic
(it also breaks qemu_ftell for input QEMUFiles, but we never use it).

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>
savevm.c