05021e7 iohelper: use saferead if later write with O_DIRECT

1 file Authored by Nikolay Shirokovskiy 6 years ago, Committed by Jiri Denemark 6 years ago,
    iohelper: use saferead if later write with O_DIRECT
    
    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.
    
    Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
    
        
file modified
+14 -2