[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] tar -tf is slow when encountering a large member
From: |
Eric Blake |
Subject: |
Re: [Bug-tar] tar -tf is slow when encountering a large member |
Date: |
Thu, 16 Sep 2010 15:20:24 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.3 |
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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org