[libvirt] [PATCH] iohelper: use saferead if later write with O_DIRECT

Jiri Denemark jdenemar at redhat.com
Tue Oct 24 08:59:42 UTC 2017


On Thu, Sep 28, 2017 at 10:06:47 +0300, Nikolay Shirokovskiy wrote:
> One of the usecases of iohelper is to read from pipe and write
> to file with O_DIRECT. As we read from pipe we can have partial
> read and then we fail to write this data because output file
> is open with O_DIRECT and buffer size is not aligned.
> ---
>  src/util/iohelper.c | 16 ++++++++++++++--
>  1 file changed, 14 insertions(+), 2 deletions(-)

ACK and pushed, thanks.

Jirka




More information about the libvir-list mailing list