On 09/16/2010 02:43 AM, Walter de Jong wrote:
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?

Because you are using an older tar, where the patch had not yet been added.

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

The ability to use seek() on seekable files was added in GNU tar 1.23. You may want to contact the SLES10 folks and ask them to update their rpm to a newer offering, or build tar from sources yourself.

--
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to