[Top][All Lists]

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

Re: [Bug-tar] Tar short read

From: Paul Eggert
Subject: Re: [Bug-tar] Tar short read
Date: Mon, 26 Sep 2011 15:33:24 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14

On 09/26/11 15:22, Kevin Fox wrote:
> I see a read of 8704 (10240 - the tar headers I'm assuming)
> then 3275 reads of 10240 bytes each,
> then the short read of 9728 (sums to exactly 32mb) then tar never issues
> another read on that descriptor.

POSIX says that short reads are allowed only near end-of-file,
or when signals arrive, or for pipes, FIFOs, and special files.
They are not allowed while reading in the middle of a regular file,
and if your file system exhibits short reads in that situation
it will likely break lots of programs.  I suggest fixing the
file system rather than putting workarounds into GNU tar and lots of
other programs.

Here's the POSIX citation:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]