Date: Wed, 9 Nov 2011 22:03:13 -0800 From: Tim Kientzle <tim@kientzle.com> To: Peter Wemm <peter@wemm.org> Cc: Bruce Cran <bruce@cran.org.uk>, Ed Schouten <ed@80386.nl>, Jilles Tjoelker <jilles@stack.nl>, Alfred Perlstein <alfred@freebsd.org>, arch@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [PATCH] fadvise(2) system call Message-ID: <6E287E90-AA62-4776-A09D-394D69C9494F@kientzle.com> In-Reply-To: <CAGE5yCoTvYNXNc37V0%2Bt783uh=6J-_J-dt_Km_4xbO7O2O2BUw@mail.gmail.com> References: <201110281426.00013.jhb@freebsd.org> <4EB2C9DD.9090606@FreeBSD.org> <20111104160319.GD6110@elvis.mu.org> <201111080800.32717.jhb@freebsd.org> <CAGE5yCoTvYNXNc37V0%2Bt783uh=6J-_J-dt_Km_4xbO7O2O2BUw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 9, 2011, at 4:57 PM, Peter Wemm wrote: > Did 'tar tvf' stop seeking and doing random seek/reads for raw tar > files? I know it can't do this for a stream compressed file and > there's no choice but to read it all. bsdtar has for some years optimized 'tar tvf' on uncompressed tar archives by using seek operations to skip over the bodies of large files. Makes a big difference in some situations. The optimization is actually integrated deeply into libarchive; the individual format handlers identify cases where the stream contents will be ignored ("skipped") and the I/O layer can use this as it sees fit. As a result, the optimization works cleanly with tar, cpio, ISO, Zip, and other formats. It sounds like some of the folks on this thread would have fun with the strategy section of libarchive/archive_read_open_filename.c. Anyone know how to properly request a "skip forward" on tape drives? That's one of the missing pieces. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E287E90-AA62-4776-A09D-394D69C9494F>