]> xenbits.xensource.com Git - libvirt.git/commit
fdstream: Implement sparse stream
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Apr 2016 08:51:46 +0000 (10:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2017 05:42:13 +0000 (07:42 +0200)
commit895479647bc185e11a5d92ed644e84a8c49d5f6a
treefca08e844996efd14e5669fb7e050169457fbabf
parent89a0e69cec82eb1c50c90568eee2403e74a5f311
fdstream: Implement sparse stream

Basically, what is needed here is to introduce new message type
for the messages passed between the event loop callbacks and the
worker thread that does all the I/O. The idea is that instead of
a queue of read buffers we will have a queue where "hole of size
X" messages appear. That way the event loop callbacks can just
check the head of the queue and see if the worker thread is in
data or a hole section and how long the section is.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_util.c
src/util/virfdstream.c
src/util/virfdstream.h