]> git.proxmox.com Git - mirror_qemu.git/commit - io/channel-file.c
io: add and implement QIO_CHANNEL_FEATURE_SEEKABLE for channel file
authorNikolay Borisov <nborisov@suse.com>
Thu, 29 Feb 2024 15:29:56 +0000 (12:29 -0300)
committerPeter Xu <peterx@redhat.com>
Fri, 1 Mar 2024 07:42:04 +0000 (15:42 +0800)
commit401e311ff72e0a62c834bfe466de68a82cfd90cb
tree9a043d67e1b8f4a384008d15783ca38b4a7375c8
parent4aac6b1e9bd48677c4f24518fe86ffd34c677d5a
io: add and implement QIO_CHANNEL_FEATURE_SEEKABLE for channel file

Add a generic QIOChannel feature SEEKABLE which would be used by the
qemu_file* apis. For the time being this will be only implemented for
file channels.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240229153017.2221-3-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
include/io/channel.h
io/channel-file.c