From owner-cvs-all@FreeBSD.ORG Sun Jan 2 19:21:54 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8350C16A4CE; Sun, 2 Jan 2005 19:21:54 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F7BB43D4C; Sun, 2 Jan 2005 19:21:53 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from freebsd.org (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id j02JLr90094966; Sun, 2 Jan 2005 11:21:53 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <41D849CC.5080802@freebsd.org> Date: Sun, 02 Jan 2005 11:21:48 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Watson References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libarchive Makefile archive.h.in archive_read_support_format_iso9660.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 19:21:54 -0000 Robert Watson wrote: > On Sun, 2 Jan 2005, Tim Kientzle wrote: > >> First cut support for extracting from ISO9660 disk images. >> This seems to be able to extract a TOC and extract files from >> the couple of ISO images I've tested it with. > > Very cool -- finally we can extract files from install CD's without root > privilege :-). This will be very useful. Thanks for the suggestion. The code here is still fairly naive; I hope to clean it up and improve it over the next couple of months. I have already found some CDs with files that cannot be extracted this way. In a nutshell, libarchive is a streaming framework that *must* see the metadata before the file contents. ISO 9660 appears to allow a file contents to appear on the disk prior to the directory containing that file (and the associated metadata). Right now, this results in "out-of-order" warnings to stderr; I'll improve the warnings, but the underlying restriction will remain. This appears to be unusual, though, so I expect this code to be quite useful, even though there will be cases where it cannot reach a particular file. Tim