]> xenbits.xensource.com Git - libvirt.git/commit
Introduce virStreamSendHole
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 10 Apr 2016 10:01:20 +0000 (12:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2017 05:42:13 +0000 (07:42 +0200)
commit69a573d010f97b60fb3a014e7d93ef9cfe4845a9
treec063a7c55c21f8dade62e5e14e71d2d2af186d71
parent65b9cd6797362b8951fdab7dd689079deb2c7060
Introduce virStreamSendHole

This API is used to tell the other side of the stream to skip
some bytes in the stream. This can be used to create a sparse
file on the receiving side of a stream.

It takes @length argument, which says how big the hole is. This
skipping is done from the current point of stream. Since our
streams are not rewindable like regular files, we don't need
@whence argument like seek(2) has.

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