On 05/16/2017 10:04 AM, Michal Privoznik wrote:
The command grew new --sparse switch that does nothing more than
s/The command grew new/Add a new/
enables the sparse streams feature for this command. Among with
the switch new helper function is introduced: virshStreamSkip().
This is the callback that is called whenever daemon sends us a
hole. In the callback we reflect the hole in underlying file by
seeking as many bytes as told.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
tools/virsh-util.c | 18 ++++++++++++++++++
tools/virsh-util.h | 5 +++++
tools/virsh-volume.c | 12 ++++++++++--
tools/virsh.pod | 3 ++-
4 files changed, 35 insertions(+), 3 deletions(-)
Reviewed-by: John Ferlan <jferlan(a)redhat.com>
John