bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] tar -tf is slow when encountering a large member


From: Walter de Jong
Subject: [Bug-tar] tar -tf is slow when encountering a large member
Date: Thu, 16 Sep 2010 10:43:41 +0200
User-agent: Thunderbird 2.0.0.24 (X11/20100411)

Hi,

I made a tar archive file on disk of a couple of small files and one large file (10 GB). When doing a 'tar -tf' of this archive, there is a noticeable long pause when it lists the large member, like it is reading all the way through the archive.

Why doesn't it use seek() to skip the member data, and get on with the next header? I made a little Python script that does exactly this, and it lists the members much quicker than the tar command itself.

The manual states that tar uses seek() when the device is capable of seeking, but this doesn't seem to be the case for the -t/--list option.
Mind that my archive is a file on disk, and it is possible to use seek().

I'm using tar on SLES10 ia64, the rpm is named tar-1.15.1-23.13


Greets,

     --Walter

--
                  *** If you build it, they will come ***

HPC Systems Programmer at SARA Computing and Network Services
People should be able to e-mail me, spambots should not.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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