Re: [PATCH v2 15/17] virfdstream: Emulate skip for block devices

2020-08-20 Thread Peter Krempa
On Tue, Jul 07, 2020 at 21:46:33 +0200, Michal Privoznik wrote: > This is similar to one of previous patches. > > When receiving stream (on virStorageVolUpload() and subsequent > virStreamSparseSendAll()) we may receive a hole. If the volume we > are saving the incoming data into is a regular

[PATCH v2 15/17] virfdstream: Emulate skip for block devices

2020-07-07 Thread Michal Privoznik
This is similar to one of previous patches. When receiving stream (on virStorageVolUpload() and subsequent virStreamSparseSendAll()) we may receive a hole. If the volume we are saving the incoming data into is a regular file we just lseek() and ftruncate() to create the hole. But this won't work