migration: rename qemu_ftell to qemu_file_total_transferred
commitfbfa6404e597920ad72510461e0b0fed5243ce1d
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 20 Jun 2022 11:01:50 +0000 (20 12:01 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 22 Jun 2022 18:33:36 +0000 (22 19:33 +0100)
treefbeb0b70234041557ea0027f59c59f23c3222076
parent154d87b4ef7f32fe4b11357648ec0b81b7e77d59
migration: rename qemu_ftell to qemu_file_total_transferred

The name 'ftell' gives the misleading impression that the QEMUFile
objects are seekable. This is not the case, as in general we just
have an opaque stream. The users of this method are only interested
in the total bytes processed. This switches to a new name that
reflects the intended usage.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
   dgilbert: Wrapped long line
migration/block.c
migration/migration.c
migration/qemu-file.c
migration/qemu-file.h
migration/savevm.c
migration/vmstate.c