]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce virFileInData
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Jun 2016 08:42:47 +0000 (10:42 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2017 05:42:13 +0000 (07:42 +0200)
commitb928d140f4c2b44c4ffa0217401cae89a2826906
tree65ea13883aded458b37bc0208f3353ebbe806059
parent07c2399c01497e55d59f82647db7193aebd42525
util: Introduce virFileInData

This function takes a FD and determines whether the current
position is in data section or in a hole. In addition to that,
it also determines how much bytes are there remaining till the
current section ends.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h
tests/virfiletest.c