Re: [PATCH 1/3] virStreamInData: Allow callback to not rewind the stream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 07, 2021 at 04:34:40PM +0100, Michal Privoznik wrote:
So far, virStreamInData() is effectively a wrapper over
virFDStreamInData() which means it deals with files which can be rewind

*rewound

(lseek()-ed) to whatever position we need. And in fact, that's what
virFDStreamInData() does - it makes sure that the FD is left unchanged
in terms of position in the file.  Skipping the hole happens soon after
- in daemonStreamHandleRead() when virStreamSendHole() is called.

But this is about to change. Soon we will have another implementation
where we won't be dealing with FDs but virNetMessage queue and it will
be handy to pop message at the beginning of the queue. Implement and
document this new behavior.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Reviewed-by: Martin Kletzander <mkletzan@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux