Re: [PATCH v2 11/17] virsh: Track if vol-upload or vol-download work over a block device

2020-08-20 Thread Peter Krempa
On Tue, Jul 07, 2020 at 21:46:29 +0200, Michal Privoznik wrote: > We can't use virFileInData() with block devices, but we could use > new virFileInDataDetectZeroes(). But to decide we need to know if > the FD we are reading data from / writing data to is a block > device. Store this information in

[PATCH v2 11/17] virsh: Track if vol-upload or vol-download work over a block device

2020-07-07 Thread Michal Privoznik
We can't use virFileInData() with block devices, but we could use new virFileInDataDetectZeroes(). But to decide we need to know if the FD we are reading data from / writing data to is a block device. Store this information in _virshStreamCallbackData. Signed-off-by: Michal Privoznik ---