]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce VIR_STREAM_RECV_STOP_AT_HOLE flag
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 20 May 2016 13:12:59 +0000 (15:12 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2017 05:42:13 +0000 (07:42 +0200)
commit87e4a842b71d319c49345ef7c81d48111ea4a5d1
tree1bd62ea930972ad91520b78ef5dfad388f087da6
parentb6aedd2f052180c847253202aba798596699a258
Introduce VIR_STREAM_RECV_STOP_AT_HOLE flag

Add a new flag to virStreamRecvFlags in order to handle being able to
stop reading from the stream so that the consumer can generate a "hole"
in stream target. Generation of a hole replaces the need to receive and
handle a sequence of zero bytes for sparse stream targets.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
include/libvirt/libvirt-stream.h
src/libvirt-stream.c