[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tar doesn't handle short reads
From: |
Andreas Dilger |
Subject: |
Re: Tar doesn't handle short reads |
Date: |
Sat, 26 Sep 2020 12:57:40 -0600 |
I think the proper behavior here is to return the bytes actually read, then
retry the rest of the read. If there is a permanent error then it can be
returned from the next read. It doesn't make sense to return an error
if you don't have to...
Cheers, Andreas
> On Sep 26, 2020, at 08:19, Nikos Tsipinakis <nikos@tsipinakis.com> wrote:
>
> A small correction that I noticed a bit too late to fix in the previous
> message: We
> should also reset errno at the beginning of the call to ensure it's actually
> an
> error.
> <0001-Use-full_read-to-avoid-errors-due-to-short-reads.patch>